- Timestamp:
- Aug 9, 2017, 7:43:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Handlers/UserStatusHandler.cs
r244 r309 28 28 result.Add ("permissions", perms); 29 29 30 WriteJSON (resp, result); 31 } 32 33 public void WriteJSON (HttpListenerResponse resp, JSONNode root) { 34 byte[] buf = Encoding.UTF8.GetBytes (root.ToString ()); 35 resp.ContentLength64 = buf.Length; 36 resp.ContentType = "application/json"; 37 resp.ContentEncoding = Encoding.UTF8; 38 resp.OutputStream.Write (buf, 0, buf.Length); 30 AllocsFixes.NetConnections.Servers.Web.API.WebAPI.WriteJSON (resp, result); 39 31 } 40 32
Note:
See TracChangeset
for help on using the changeset viewer.