Changeset 163 for binary-improvements/7dtd-server-fixes/src/NetConnections
- Timestamp:
- Sep 4, 2014, 5:45:22 PM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/ApiHandler.cs
r158 r163 18 18 apis.Add ("getplayersonline", new GetPlayersOnline ()); 19 19 apis.Add ("getplayerslocation", new GetPlayersLocation ()); 20 apis.Add ("getplayerinventory", new GetPlayerInventory ()); 20 21 } 21 22 -
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.