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
07b66dbd
Commit
07b66dbd
authored
May 14, 2017
by
justcoding121
Committed by
justcoding121
May 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
2f32d5bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
CustomBufferedStream.cs
Titanium.Web.Proxy/Helpers/CustomBufferedStream.cs
+4
-7
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
No files found.
Titanium.Web.Proxy/Helpers/CustomBufferedStream.cs
View file @
07b66dbd
using
System
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.IO
;
using
System.Linq
;
using
System.Runtime.Remoting
;
using
System.Runtime.Remoting.Messaging
;
using
System.Text
;
using
System.Threading
;
using
System.Threading.Tasks
;
namespace
Titanium.Web.Proxy.Helpers
{
/// <summary>
///
/// A custom network stream inherited from stream
/// with an underlying buffer
/// </summary>
/// <seealso cref="System.IO.Stream" />
class
CustomBufferedStream
:
Stream
internal
class
CustomBufferedStream
:
Stream
{
private
readonly
Stream
baseStream
;
...
...
@@ -419,7 +416,7 @@ namespace Titanium.Web.Proxy.Helpers
return
bufferLength
>
0
;
}
class
ReadAsyncResult
:
IAsyncResult
private
class
ReadAsyncResult
:
IAsyncResult
{
public
int
ReadBytes
{
get
;
}
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
07b66dbd
...
...
@@ -139,7 +139,7 @@ namespace Titanium.Web.Proxy
//Sorry cannot do a HTTPS request decrypt to port 80 at this time
else
if
(
httpVerb
==
"CONNECT"
)
{
//
Cyphe
n out CONNECT request headers
//
Sipho
n out CONNECT request headers
await
clientStreamReader
.
ReadAndIgnoreAllLinesAsync
();
//write back successfull CONNECT response
await
WriteConnectResponse
(
clientStreamWriter
,
version
);
...
...
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