aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener.Portable/Net/HttpListenerRequest.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-12 19:30:03 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-12 19:30:03 -0500
commit38c216a61a3dc389d1ddab2a37b4b032a6de13d0 (patch)
tree014986191dfe763ecda08e212e3bbe4998e4b36a /SocketHttpListener.Portable/Net/HttpListenerRequest.cs
parent102bbe2beb76fa76b21f4ed3f7c584a58d787204 (diff)
update response streams
Diffstat (limited to 'SocketHttpListener.Portable/Net/HttpListenerRequest.cs')
-rw-r--r--SocketHttpListener.Portable/Net/HttpListenerRequest.cs9
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(':');