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
275ebf64
Commit
275ebf64
authored
Jul 11, 2017
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #303 + removed unused usings
parent
8edbc4a2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
+12
-7
DeflateDecompression.cs
Titanium.Web.Proxy/Decompression/DeflateDecompression.cs
+0
-1
GZipDecompression.cs
Titanium.Web.Proxy/Decompression/GZipDecompression.cs
+0
-1
StreamExtensions.cs
Titanium.Web.Proxy/Extensions/StreamExtensions.cs
+0
-1
HeaderParser.cs
Titanium.Web.Proxy/Http/HeaderParser.cs
+0
-1
HttpWebClient.cs
Titanium.Web.Proxy/Http/HttpWebClient.cs
+12
-2
TcpConnectionFactory.cs
Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
+0
-1
No files found.
Titanium.Web.Proxy/Decompression/DeflateDecompression.cs
View file @
275ebf64
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
using
System.IO
;
using
System.IO
;
using
System.IO.Compression
;
using
System.IO.Compression
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Titanium.Web.Proxy.Helpers
;
namespace
Titanium.Web.Proxy.Decompression
namespace
Titanium.Web.Proxy.Decompression
{
{
...
...
Titanium.Web.Proxy/Decompression/GZipDecompression.cs
View file @
275ebf64
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
using
System.IO
;
using
System.IO
;
using
System.IO.Compression
;
using
System.IO.Compression
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Titanium.Web.Proxy.Helpers
;
namespace
Titanium.Web.Proxy.Decompression
namespace
Titanium.Web.Proxy.Decompression
{
{
...
...
Titanium.Web.Proxy/Extensions/StreamExtensions.cs
View file @
275ebf64
...
@@ -3,7 +3,6 @@ using System;
...
@@ -3,7 +3,6 @@ using System;
using
System.Globalization
;
using
System.Globalization
;
using
System.IO
;
using
System.IO
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Titanium.Web.Proxy.Helpers
;
namespace
Titanium.Web.Proxy.Extensions
namespace
Titanium.Web.Proxy.Extensions
{
{
...
...
Titanium.Web.Proxy/Http/HeaderParser.cs
View file @
275ebf64
using
StreamExtended.Network
;
using
StreamExtended.Network
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Titanium.Web.Proxy.Helpers
;
using
Titanium.Web.Proxy.Models
;
using
Titanium.Web.Proxy.Models
;
using
Titanium.Web.Proxy.Shared
;
using
Titanium.Web.Proxy.Shared
;
...
...
Titanium.Web.Proxy/Http/HttpWebClient.cs
View file @
275ebf64
...
@@ -79,10 +79,20 @@ namespace Titanium.Web.Proxy.Http
...
@@ -79,10 +79,20 @@ namespace Titanium.Web.Proxy.Http
using
(
var
ms
=
new
MemoryStream
())
using
(
var
ms
=
new
MemoryStream
())
using
(
var
writer
=
new
HttpRequestWriter
(
ms
))
using
(
var
writer
=
new
HttpRequestWriter
(
ms
))
{
{
var
upstreamProxy
=
ServerConnection
.
UpStreamHttpProxy
;
bool
useUpstreamProxy
=
upstreamProxy
!=
null
&&
ServerConnection
.
IsHttps
==
false
;
//prepare the request & headers
//prepare the request & headers
writer
.
WriteLine
(
$"
{
Request
.
Method
}
{
Request
.
RequestUri
.
PathAndQuery
}
HTTP/
{
Request
.
HttpVersion
.
Major
}
.
{
Request
.
HttpVersion
.
Minor
}
"
);
if
(
useUpstreamProxy
)
{
writer
.
WriteLine
(
$"
{
Request
.
Method
}
{
Request
.
OriginalRequestUrl
}
HTTP/
{
Request
.
HttpVersion
.
Major
}
.
{
Request
.
HttpVersion
.
Minor
}
"
);
}
else
{
writer
.
WriteLine
(
$"
{
Request
.
Method
}
{
Request
.
RequestUri
.
PathAndQuery
}
HTTP/
{
Request
.
HttpVersion
.
Major
}
.
{
Request
.
HttpVersion
.
Minor
}
"
);
}
var
upstreamProxy
=
ServerConnection
.
UpStreamHttpProxy
;
//Send Authentication to Upstream proxy if needed
//Send Authentication to Upstream proxy if needed
if
(
upstreamProxy
!=
null
if
(
upstreamProxy
!=
null
...
...
Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
View file @
275ebf64
using
StreamExtended.Network
;
using
StreamExtended.Network
;
using
System
;
using
System
;
using
System.IO
;
using
System.Linq
;
using
System.Linq
;
using
System.Net.Security
;
using
System.Net.Security
;
using
System.Net.Sockets
;
using
System.Net.Sockets
;
...
...
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