diff options
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(':'); |
