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
6edfb09c
Commit
6edfb09c
authored
Mar 28, 2018
by
Björn Weström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of response body for ReRequests. Spelling.
parent
cfb601a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+5
-3
WinAuthHandler.cs
Titanium.Web.Proxy/WinAuthHandler.cs
+1
-1
No files found.
Titanium.Web.Proxy/ResponseHandler.cs
View file @
6edfb09c
...
@@ -36,6 +36,8 @@ namespace Titanium.Web.Proxy
...
@@ -36,6 +36,8 @@ namespace Titanium.Web.Proxy
await
Handle401UnAuthorized
(
args
);
await
Handle401UnAuthorized
(
args
);
}
}
response
.
OriginalHasBody
=
response
.
HasBody
;
//if user requested call back then do it
//if user requested call back then do it
if
(!
response
.
Locked
)
if
(!
response
.
Locked
)
{
{
...
@@ -44,9 +46,9 @@ namespace Titanium.Web.Proxy
...
@@ -44,9 +46,9 @@ namespace Titanium.Web.Proxy
// it may changed in the user event
// it may changed in the user event
response
=
args
.
WebSession
.
Response
;
response
=
args
.
WebSession
.
Response
;
var
clientStreamWriter
=
args
.
ProxyClient
.
ClientStreamWriter
;
var
clientStreamWriter
=
args
.
ProxyClient
.
ClientStreamWriter
;
if
(
response
.
TerminateResponse
||
response
.
Locked
)
if
(
response
.
TerminateResponse
||
response
.
Locked
)
{
{
await
clientStreamWriter
.
WriteResponseAsync
(
response
);
await
clientStreamWriter
.
WriteResponseAsync
(
response
);
...
@@ -64,7 +66,7 @@ namespace Titanium.Web.Proxy
...
@@ -64,7 +66,7 @@ namespace Titanium.Web.Proxy
return
;
return
;
}
}
//if user requested to send request again
//if user requested to send request again
//likely after making modifications from User Response Handler
//likely after making modifications from User Response Handler
if
(
args
.
ReRequest
)
if
(
args
.
ReRequest
)
...
...
Titanium.Web.Proxy/WinAuthHandler.cs
View file @
6edfb09c
...
@@ -130,7 +130,7 @@ namespace Titanium.Web.Proxy
...
@@ -130,7 +130,7 @@ namespace Titanium.Web.Proxy
//Should we cache all Set-Cokiee headers from server during auth process
//Should we cache all Set-Cokiee headers from server during auth process
//and send it to client after auth?
//and send it to client after auth?
// Let Re
pos
nseHandler send the updated request
// Let Re
spo
nseHandler send the updated request
args
.
ReRequest
=
true
;
args
.
ReRequest
=
true
;
}
}
}
}
...
...
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