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
171d3e8e
Commit
171d3e8e
authored
May 12, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refeactor cleanup
parent
7597ecc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+4
-2
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+0
-4
No files found.
Titanium.Web.Proxy/RequestHandler.cs
View file @
171d3e8e
...
@@ -189,7 +189,8 @@ namespace Titanium.Web.Proxy
...
@@ -189,7 +189,8 @@ namespace Titanium.Web.Proxy
prefetchTask
=
null
;
prefetchTask
=
null
;
}
}
// create a new connection if cache key changes
// create a new connection if cache key changes.
// only gets hit when connection pool is disabled.
if
(
serverConnection
!=
null
if
(
serverConnection
!=
null
&&
(
await
getConnectionCacheKey
(
args
,
false
,
&&
(
await
getConnectionCacheKey
(
args
,
false
,
clientConnection
.
NegotiatedApplicationProtocol
)
clientConnection
.
NegotiatedApplicationProtocol
)
...
@@ -245,7 +246,8 @@ namespace Titanium.Web.Proxy
...
@@ -245,7 +246,8 @@ namespace Titanium.Web.Proxy
break
;
break
;
}
}
if
(
args
.
WebSession
.
ServerConnection
==
null
)
//user requested
if
(
args
.
WebSession
.
Response
.
TerminateResponse
)
{
{
closeServerConnection
=
true
;
closeServerConnection
=
true
;
return
;
return
;
...
...
Titanium.Web.Proxy/ResponseHandler.cs
View file @
171d3e8e
...
@@ -62,10 +62,6 @@ namespace Titanium.Web.Proxy
...
@@ -62,10 +62,6 @@ namespace Titanium.Web.Proxy
// syphon out the response body from server before setting the new body
// syphon out the response body from server before setting the new body
await
args
.
SyphonOutBodyAsync
(
false
,
cancellationToken
);
await
args
.
SyphonOutBodyAsync
(
false
,
cancellationToken
);
}
}
else
{
args
.
WebSession
.
ServerConnection
=
null
;
}
return
;
return
;
}
}
...
...
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