Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
dfc356cd
Commit
dfc356cd
authored
Jan 04, 2016
by
titanium007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove extra newline
parent
ffe306c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
HttpWebClient.cs
Titanium.Web.Proxy/Http/HttpWebClient.cs
+1
-1
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+3
-3
No files found.
Titanium.Web.Proxy/Http/HttpWebClient.cs
View file @
dfc356cd
...
@@ -121,7 +121,7 @@ namespace Titanium.Web.Proxy.Http
...
@@ -121,7 +121,7 @@ namespace Titanium.Web.Proxy.Http
}
}
requestLines
.
AppendLine
();
requestLines
.
AppendLine
();
requestLines
.
AppendLine
();
//
requestLines.AppendLine();
string
request
=
requestLines
.
ToString
();
string
request
=
requestLines
.
ToString
();
byte
[]
requestBytes
=
Encoding
.
ASCII
.
GetBytes
(
request
);
byte
[]
requestBytes
=
Encoding
.
ASCII
.
GetBytes
(
request
);
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
dfc356cd
...
@@ -382,7 +382,7 @@ namespace Titanium.Web.Proxy
...
@@ -382,7 +382,7 @@ namespace Titanium.Web.Proxy
private
static
void
SendClientRequestBody
(
SessionEventArgs
args
)
private
static
void
SendClientRequestBody
(
SessionEventArgs
args
)
{
{
// End the operation
// End the operation
var
postStream
=
args
.
ProxySession
.
ProxyClient
.
S
erverStreamReader
;
var
postStream
=
args
.
ProxySession
.
ProxyClient
.
S
tream
;
if
(
args
.
ProxySession
.
Request
.
RequestContentLength
>
0
)
if
(
args
.
ProxySession
.
Request
.
RequestContentLength
>
0
)
...
@@ -411,7 +411,7 @@ namespace Titanium.Web.Proxy
...
@@ -411,7 +411,7 @@ namespace Titanium.Web.Proxy
{
{
bytesToRead
=
remainingBytes
;
bytesToRead
=
remainingBytes
;
}
}
postStream
.
BaseStream
.
Write
(
buffer
,
0
,
buffer
.
Length
);
postStream
.
Write
(
buffer
,
0
,
buffer
.
Length
);
}
}
//postStream.Close();
//postStream.Close();
...
@@ -438,7 +438,7 @@ namespace Titanium.Web.Proxy
...
@@ -438,7 +438,7 @@ namespace Titanium.Web.Proxy
if
(
chunkSize
!=
0
)
if
(
chunkSize
!=
0
)
{
{
var
buffer
=
args
.
Client
.
ClientStreamReader
.
ReadBytes
(
chunkSize
);
var
buffer
=
args
.
Client
.
ClientStreamReader
.
ReadBytes
(
chunkSize
);
postStream
.
BaseStream
.
Write
(
buffer
,
0
,
buffer
.
Length
);
postStream
.
Write
(
buffer
,
0
,
buffer
.
Length
);
//chunk trail
//chunk trail
args
.
Client
.
ClientStreamReader
.
ReadLine
();
args
.
Client
.
ClientStreamReader
.
ReadLine
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment