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
ab925379
Commit
ab925379
authored
Mar 22, 2016
by
justcoding121
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #55 from justcoding121/master
lock host set
parents
c6254080
a8ceb68b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
HttpWebClient.cs
Titanium.Web.Proxy/Network/HttpWebClient.cs
+1
-1
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+3
-4
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+0
-2
No files found.
Titanium.Web.Proxy/Network/HttpWebClient.cs
View file @
ab925379
...
...
@@ -20,7 +20,7 @@ namespace Titanium.Web.Proxy.Network
public
Uri
RequestUri
{
get
;
set
;
}
public
string
HttpVersion
{
get
;
set
;
}
public
string
Host
internal
string
Host
{
get
{
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
ab925379
...
...
@@ -237,7 +237,6 @@ namespace Titanium.Web.Proxy
args
.
Client
.
ClientStream
=
clientStream
;
args
.
Client
.
ClientStreamReader
=
clientStreamReader
;
args
.
Client
.
ClientStreamWriter
=
clientStreamWriter
;
args
.
ProxySession
.
Request
.
Host
=
args
.
ProxySession
.
Request
.
RequestUri
.
Host
;
//If requested interception
if
(
BeforeRequest
!=
null
)
...
...
@@ -257,11 +256,11 @@ namespace Titanium.Web.Proxy
//construct the web request that we are going to issue on behalf of the client.
connection
=
connection
==
null
?
TcpConnectionManager
.
GetClient
(
args
.
ProxySession
.
Request
.
RequestUri
.
Host
,
args
.
ProxySession
.
Request
.
RequestUri
.
Port
,
args
.
IsHttps
)
:
lastRequestHostName
!=
args
.
ProxySession
.
Request
.
Host
?
TcpConnectionManager
.
GetClient
(
args
.
ProxySession
.
Request
.
RequestUri
.
Host
,
args
.
ProxySession
.
Request
.
RequestUri
.
Port
,
args
.
IsHttps
)
:
lastRequestHostName
!=
args
.
ProxySession
.
Request
.
RequestUri
.
Host
?
TcpConnectionManager
.
GetClient
(
args
.
ProxySession
.
Request
.
RequestUri
.
Host
,
args
.
ProxySession
.
Request
.
RequestUri
.
Port
,
args
.
IsHttps
)
:
connection
;
lastRequestHostName
=
args
.
ProxySession
.
Request
.
Host
;
lastRequestHostName
=
args
.
ProxySession
.
Request
.
RequestUri
.
Host
;
args
.
ProxySession
.
Request
.
Host
=
args
.
ProxySession
.
Request
.
RequestUri
.
Host
;
args
.
ProxySession
.
SetConnection
(
connection
);
args
.
ProxySession
.
SendRequest
();
...
...
Titanium.Web.Proxy/ResponseHandler.cs
View file @
ab925379
...
...
@@ -84,8 +84,6 @@ namespace Titanium.Web.Proxy
}
private
static
void
WriteResponseStatus
(
string
version
,
string
code
,
string
description
,
StreamWriter
responseWriter
)
{
...
...
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