Ignore:
Timestamp:
Aug 9, 2017, 7:43:07 PM (7 years ago)
Author:
alloc
Message:

Fixes 14_16_21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/API/WebAPI.cs

    r306 r309  
    99                public static void WriteJSON (HttpListenerResponse resp, JSON.JSONNode root)
    1010                {
    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 ());
    1214                        resp.ContentLength64 = buf.Length;
    1315                        resp.ContentType = "application/json";
Note: See TracChangeset for help on using the changeset viewer.