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
6a3a07bf
Commit
6a3a07bf
authored
Jul 17, 2016
by
justcoding121
Committed by
GitHub
Jul 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #101 from justcoding121/release
set ToUpper for Method
parents
b9cbd731
9397709b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ProxyTestController.cs
.../Titanium.Web.Proxy.Examples.Basic/ProxyTestController.cs
+1
-1
README.md
README.md
+1
-1
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
No files found.
Examples/Titanium.Web.Proxy.Examples.Basic/ProxyTestController.cs
View file @
6a3a07bf
...
...
@@ -78,7 +78,7 @@ namespace Titanium.Web.Proxy.Examples.Basic
////read request headers
var
requestHeaders
=
e
.
WebSession
.
Request
.
RequestHeaders
;
if
((
e
.
WebSession
.
Request
.
Method
.
ToUpper
()
==
"POST"
||
e
.
WebSession
.
Request
.
Method
.
ToUpper
()
==
"PUT"
))
if
((
e
.
WebSession
.
Request
.
Method
==
"POST"
||
e
.
WebSession
.
Request
.
Method
==
"PUT"
))
{
//Get/Set request body bytes
byte
[]
bodyBytes
=
await
e
.
GetRequestBody
();
...
...
README.md
View file @
6a3a07bf
...
...
@@ -102,7 +102,7 @@ Sample request and response event handlers
////read request headers
var
requestHeaders
=
e
.
WebSession
.
Request
.
RequestHeaders
;
if
((
e
.
WebSession
.
Request
.
Method
.
ToUpper
()
==
"POST"
||
e
.
WebSession
.
Request
.
Method
.
ToUpper
()
==
"PUT"
))
if
((
e
.
WebSession
.
Request
.
Method
==
"POST"
||
e
.
WebSession
.
Request
.
Method
==
"PUT"
))
{
//Get/Set request body bytes
byte
[]
bodyBytes
=
await
e
.
GetRequestBody
();
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
6a3a07bf
...
...
@@ -288,7 +288,7 @@ namespace Titanium.Web.Proxy
args
.
WebSession
.
Request
.
RequestUri
=
httpRemoteUri
;
args
.
WebSession
.
Request
.
Method
=
httpMethod
;
args
.
WebSession
.
Request
.
Method
=
httpMethod
.
Trim
().
ToUpper
()
;
args
.
WebSession
.
Request
.
HttpVersion
=
httpVersion
;
args
.
ProxyClient
.
ClientStream
=
clientStream
;
args
.
ProxyClient
.
ClientStreamReader
=
clientStreamReader
;
...
...
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