diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-12 19:30:03 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-12 19:30:03 -0500 |
| commit | 38c216a61a3dc389d1ddab2a37b4b032a6de13d0 (patch) | |
| tree | 014986191dfe763ecda08e212e3bbe4998e4b36a /SocketHttpListener.Portable/Net/HttpListenerRequest.cs | |
| parent | 102bbe2beb76fa76b21f4ed3f7c584a58d787204 (diff) | |
update response streams
Diffstat (limited to 'SocketHttpListener.Portable/Net/HttpListenerRequest.cs')
| -rw-r--r-- | SocketHttpListener.Portable/Net/HttpListenerRequest.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/SocketHttpListener.Portable/Net/HttpListenerRequest.cs b/SocketHttpListener.Portable/Net/HttpListenerRequest.cs index 767f1c542..811cc6ddb 100644 --- a/SocketHttpListener.Portable/Net/HttpListenerRequest.cs +++ b/SocketHttpListener.Portable/Net/HttpListenerRequest.cs @@ -179,9 +179,9 @@ namespace SocketHttpListener.Net } } - if (HasExpect100Continue) + if (String.Compare(Headers["Expect"], "100-continue", StringComparison.OrdinalIgnoreCase) == 0) { - var output = (ResponseStream)context.Connection.GetResponseStream(this); + var output = (ResponseStream)context.Connection.GetResponseStream(true); var _100continue = _textEncoding.GetASCIIEncoding().GetBytes("HTTP/1.1 100 Continue\r\n\r\n"); @@ -189,11 +189,6 @@ namespace SocketHttpListener.Net } } - public bool HasExpect100Continue - { - get { return String.Compare(Headers["Expect"], "100-continue", StringComparison.OrdinalIgnoreCase) == 0; } - } - static bool MaybeUri(string s) { int p = s.IndexOf(':'); |
