diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-05-05 13:55:38 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-05-05 13:55:38 -0400 |
| commit | 3a8b567f14ec3353cf55e296e6f06e13632b2e10 (patch) | |
| tree | 5112d8469106caa247420a1db3b4443da348d2a7 /SocketHttpListener.Portable/Net/HttpListenerResponse.cs | |
| parent | 364c8206bf500ac466d5360ddfe01b67fa8b59a9 (diff) | |
update file responses
Diffstat (limited to 'SocketHttpListener.Portable/Net/HttpListenerResponse.cs')
| -rw-r--r-- | SocketHttpListener.Portable/Net/HttpListenerResponse.cs | 2 |
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); |
