Commit 6a3a07bf authored by justcoding121's avatar justcoding121 Committed by GitHub

Merge pull request #101 from justcoding121/release

set ToUpper for Method
parents b9cbd731 9397709b
......@@ -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();
......
......@@ -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();
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment