Changeset 309 for binary-improvements/MapRendering/Web/API/WebAPI.cs
- Timestamp:
- Aug 9, 2017, 7:43:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/WebAPI.cs
r306 r309 9 9 public static void WriteJSON (HttpListenerResponse resp, JSON.JSONNode root) 10 10 { 11 byte[] buf = Encoding.UTF8.GetBytes (root.ToString()); 11 StringBuilder sb = new StringBuilder (); 12 root.ToString (sb); 13 byte[] buf = Encoding.UTF8.GetBytes (sb.ToString ()); 12 14 resp.ContentLength64 = buf.Length; 13 15 resp.ContentType = "application/json";
Note:
See TracChangeset
for help on using the changeset viewer.