aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener.Portable/Net/HttpListenerResponse.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-05 13:55:38 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-05 13:55:38 -0400
commit3a8b567f14ec3353cf55e296e6f06e13632b2e10 (patch)
tree5112d8469106caa247420a1db3b4443da348d2a7 /SocketHttpListener.Portable/Net/HttpListenerResponse.cs
parent364c8206bf500ac466d5360ddfe01b67fa8b59a9 (diff)
update file responses
Diffstat (limited to 'SocketHttpListener.Portable/Net/HttpListenerResponse.cs')
-rw-r--r--SocketHttpListener.Portable/Net/HttpListenerResponse.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/SocketHttpListener.Portable/Net/HttpListenerResponse.cs b/SocketHttpListener.Portable/Net/HttpListenerResponse.cs
index d9f91c0cc..3cb6a0d75 100644
--- a/SocketHttpListener.Portable/Net/HttpListenerResponse.cs
+++ b/SocketHttpListener.Portable/Net/HttpListenerResponse.cs
@@ -480,6 +480,8 @@ namespace SocketHttpListener.Net
headers.SetInternal("Set-Cookie", cookie.ToString());
}
+ headers.SetInternal("Status", status_code.ToString(CultureInfo.InvariantCulture));
+
using (StreamWriter writer = new StreamWriter(ms, encoding, 256, true))
{
writer.Write("HTTP/{0} {1} {2}\r\n", version, status_code, status_description);