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
9f87c0e6
Commit
9f87c0e6
authored
Apr 03, 2020
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
33d86a59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
HttpStream.cs
src/Titanium.Web.Proxy/Helpers/HttpStream.cs
+6
-2
No files found.
src/Titanium.Web.Proxy/Helpers/HttpStream.cs
View file @
9f87c0e6
...
...
@@ -9,6 +9,7 @@ using System.Threading;
using
System.Threading.Tasks
;
using
Titanium.Web.Proxy.Compression
;
using
Titanium.Web.Proxy.EventArguments
;
using
Titanium.Web.Proxy.Exceptions
;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Http
;
using
Titanium.Web.Proxy.Models
;
...
...
@@ -1102,13 +1103,16 @@ namespace Titanium.Web.Proxy.Helpers
return
;
}
int
idx
=
chunkHead
.
IndexOf
(
";"
);
int
idx
=
chunkHead
.
IndexOf
(
";"
,
StringComparison
.
Ordinal
);
if
(
idx
>=
0
)
{
chunkHead
=
chunkHead
.
Substring
(
0
,
idx
);
}
int
chunkSize
=
int
.
Parse
(
chunkHead
,
NumberStyles
.
HexNumber
);
if
(!
int
.
TryParse
(
chunkHead
,
NumberStyles
.
HexNumber
,
null
,
out
int
chunkSize
))
{
throw
new
ProxyHttpException
(
$"Invalid chunk length: '
{
chunkHead
}
'"
,
null
,
null
);
}
await
writer
.
WriteLineAsync
(
chunkHead
,
cancellationToken
);
...
...
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