From 38c216a61a3dc389d1ddab2a37b4b032a6de13d0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 12 Nov 2016 19:30:03 -0500 Subject: update response streams --- SocketHttpListener.Portable/Net/HttpListenerRequest.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'SocketHttpListener.Portable/Net/HttpListenerRequest.cs') 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(':'); -- cgit v1.2.3