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
cfb601a9
Commit
cfb601a9
authored
Mar 27, 2018
by
Björn Weström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
concurrency fix
parent
ce0bba9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+1
-2
WinAuthHandler.cs
Titanium.Web.Proxy/WinAuthHandler.cs
+2
-6
No files found.
Titanium.Web.Proxy/ResponseHandler.cs
View file @
cfb601a9
...
...
@@ -28,6 +28,7 @@ namespace Titanium.Web.Proxy
await
args
.
WebSession
.
ReceiveResponse
();
var
response
=
args
.
WebSession
.
Response
;
args
.
ReRequest
=
false
;
//check for windows authentication
if
(
isWindowsAuthenticationEnabledAndSupported
&&
response
.
StatusCode
==
(
int
)
HttpStatusCode
.
Unauthorized
)
...
...
@@ -35,8 +36,6 @@ namespace Titanium.Web.Proxy
await
Handle401UnAuthorized
(
args
);
}
args
.
ReRequest
=
false
;
//if user requested call back then do it
if
(!
response
.
Locked
)
{
...
...
Titanium.Web.Proxy/WinAuthHandler.cs
View file @
cfb601a9
...
...
@@ -130,12 +130,8 @@ namespace Titanium.Web.Proxy
//Should we cache all Set-Cokiee headers from server during auth process
//and send it to client after auth?
//clear current server response
await
args
.
ClearResponse
();
//request again with updated authorization header
//and server cookies
await
HandleHttpSessionRequestInternal
(
args
.
WebSession
.
ServerConnection
,
args
);
// Let ReposnseHandler send the updated request
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