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
554069ba
Commit
554069ba
authored
Jun 01, 2016
by
titanium007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug caused by using wrong variable in SessionEventArgs
parent
167bb2f7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
SessionEventArgs.cs
Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
+3
-3
HttpWebClient.cs
Titanium.Web.Proxy/Http/HttpWebClient.cs
+2
-2
ProxyServer.cs
Titanium.Web.Proxy/ProxyServer.cs
+4
-0
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
No files found.
Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
View file @
554069ba
...
...
@@ -25,7 +25,7 @@ namespace Titanium.Web.Proxy.EventArguments
internal
SessionEventArgs
()
{
Client
=
new
ProxyClient
();
WebSession
=
new
HttpWeb
Session
();
WebSession
=
new
HttpWeb
Client
();
}
/// <summary>
...
...
@@ -42,7 +42,7 @@ namespace Titanium.Web.Proxy.EventArguments
/// A web session corresponding to a single request/response sequence
/// within a proxy connection
/// </summary>
public
HttpWeb
Session
WebSession
{
get
;
set
;
}
public
HttpWeb
Client
WebSession
{
get
;
set
;
}
/// <summary>
...
...
@@ -87,7 +87,7 @@ namespace Titanium.Web.Proxy.EventArguments
await
this
.
Client
.
ClientStreamReader
.
CopyBytesToStream
(
requestBodyStream
,
WebSession
.
Request
.
ContentLength
).
ConfigureAwait
(
false
);
}
else
if
(
WebSession
.
Re
sponse
.
HttpVersion
.
Major
==
1
&&
WebSession
.
Response
.
HttpVersion
.
Minor
==
0
)
else
if
(
WebSession
.
Re
quest
.
HttpVersion
.
Major
==
1
&&
WebSession
.
Request
.
HttpVersion
.
Minor
==
0
)
await
WebSession
.
ServerConnection
.
StreamReader
.
CopyBytesToStream
(
requestBodyStream
,
long
.
MaxValue
).
ConfigureAwait
(
false
);
}
WebSession
.
Request
.
RequestBody
=
await
GetDecompressedResponseBody
(
WebSession
.
Request
.
ContentEncoding
,
requestBodyStream
.
ToArray
()).
ConfigureAwait
(
false
);
...
...
Titanium.Web.Proxy/Http/HttpWebClient.cs
View file @
554069ba
...
...
@@ -9,7 +9,7 @@ using Titanium.Web.Proxy.Shared;
namespace
Titanium.Web.Proxy.Http
{
public
class
HttpWeb
Session
public
class
HttpWeb
Client
{
internal
TcpConnection
ServerConnection
{
get
;
set
;
}
...
...
@@ -30,7 +30,7 @@ namespace Titanium.Web.Proxy.Http
ServerConnection
=
Connection
;
}
internal
HttpWeb
Session
()
internal
HttpWeb
Client
()
{
this
.
Request
=
new
Request
();
this
.
Response
=
new
Response
();
...
...
Titanium.Web.Proxy/ProxyServer.cs
View file @
554069ba
...
...
@@ -236,6 +236,10 @@ namespace Titanium.Web.Proxy
// so just return.
return
;
}
catch
{
}
}
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
554069ba
...
...
@@ -365,7 +365,7 @@ namespace Titanium.Web.Proxy
await
clientStreamWriter
.
FlushAsync
().
ConfigureAwait
(
false
);
}
private
static
void
PrepareRequestHeaders
(
List
<
HttpHeader
>
requestHeaders
,
HttpWeb
Session
webRequest
)
private
static
void
PrepareRequestHeaders
(
List
<
HttpHeader
>
requestHeaders
,
HttpWeb
Client
webRequest
)
{
for
(
var
i
=
0
;
i
<
requestHeaders
.
Count
;
i
++)
{
...
...
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