- Timestamp:
- Sep 4, 2014, 5:45:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/Web.cs
r154 r163 120 120 } 121 121 122 public static void SetResponseTextContent (HttpListenerResponse resp, string text) 123 { 124 byte[] buf = Encoding.UTF8.GetBytes (text); 125 resp.ContentLength64 = buf.Length; 126 resp.ContentType = "text/html"; 127 resp.ContentEncoding = Encoding.UTF8; 128 resp.OutputStream.Write (buf, 0, buf.Length); 129 } 130 122 131 } 123 132 }
Note:
See TracChangeset
for help on using the changeset viewer.