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
9b4e3dca
Commit
9b4e3dca
authored
Nov 17, 2019
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #654
parent
f5298575
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
ExplicitClientHandler.cs
src/Titanium.Web.Proxy/ExplicitClientHandler.cs
+1
-1
TcpConnectionFactory.cs
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
+0
-1
RequestHandler.cs
src/Titanium.Web.Proxy/RequestHandler.cs
+1
-1
No files found.
src/Titanium.Web.Proxy/ExplicitClientHandler.cs
View file @
9b4e3dca
...
@@ -121,7 +121,6 @@ namespace Titanium.Web.Proxy
...
@@ -121,7 +121,6 @@ namespace Titanium.Web.Proxy
bool
isClientHello
=
clientHelloInfo
!=
null
;
bool
isClientHello
=
clientHelloInfo
!=
null
;
if
(
clientHelloInfo
!=
null
)
if
(
clientHelloInfo
!=
null
)
{
{
connectRequest
.
IsHttps
=
true
;
connectRequest
.
TunnelType
=
TunnelType
.
Https
;
connectRequest
.
TunnelType
=
TunnelType
.
Https
;
connectRequest
.
ClientHelloInfo
=
clientHelloInfo
;
connectRequest
.
ClientHelloInfo
=
clientHelloInfo
;
}
}
...
@@ -130,6 +129,7 @@ namespace Titanium.Web.Proxy
...
@@ -130,6 +129,7 @@ namespace Titanium.Web.Proxy
if
(
decryptSsl
&&
clientHelloInfo
!=
null
)
if
(
decryptSsl
&&
clientHelloInfo
!=
null
)
{
{
connectRequest
.
IsHttps
=
true
;
// todo: move this line to the previous "if"
clientConnection
.
SslProtocol
=
clientHelloInfo
.
SslProtocol
;
clientConnection
.
SslProtocol
=
clientHelloInfo
.
SslProtocol
;
bool
http2Supported
=
false
;
bool
http2Supported
=
false
;
...
...
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
View file @
9b4e3dca
...
@@ -432,7 +432,6 @@ retry:
...
@@ -432,7 +432,6 @@ retry:
{
{
session
.
TimeLine
[
"HTTPS Established"
]
=
DateTime
.
Now
;
session
.
TimeLine
[
"HTTPS Established"
]
=
DateTime
.
Now
;
}
}
}
}
}
}
catch
(
IOException
ex
)
when
(
ex
.
HResult
==
unchecked
((
int
)
0x80131620
)
&&
retry
&&
enabledSslProtocols
>=
SslProtocols
.
Tls11
)
catch
(
IOException
ex
)
when
(
ex
.
HResult
==
unchecked
((
int
)
0x80131620
)
&&
retry
&&
enabledSslProtocols
>=
SslProtocols
.
Tls11
)
...
...
src/Titanium.Web.Proxy/RequestHandler.cs
View file @
9b4e3dca
...
@@ -353,7 +353,7 @@ namespace Titanium.Web.Proxy
...
@@ -353,7 +353,7 @@ namespace Titanium.Web.Proxy
supportedAcceptEncoding
.
Add
(
"identity"
);
supportedAcceptEncoding
.
Add
(
"identity"
);
requestHeaders
.
SetOrAddHeaderValue
(
KnownHeaders
.
AcceptEncoding
,
requestHeaders
.
SetOrAddHeaderValue
(
KnownHeaders
.
AcceptEncoding
,
string
.
Join
(
","
,
supportedAcceptEncoding
));
string
.
Join
(
",
"
,
supportedAcceptEncoding
));
}
}
requestHeaders
.
FixProxyHeaders
();
requestHeaders
.
FixProxyHeaders
();
...
...
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