Ignore:
Timestamp:
Sep 4, 2014, 5:45:22 PM (10 years ago)
Author:
alloc
Message:

fixes

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  
    1818                        apis.Add ("getplayersonline", new GetPlayersOnline ());
    1919                        apis.Add ("getplayerslocation", new GetPlayersLocation ());
     20                        apis.Add ("getplayerinventory", new GetPlayerInventory ());
    2021                }
    2122
  • binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/Web.cs

    r154 r163  
    120120                }
    121121
     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
    122131        }
    123132}
Note: See TracChangeset for help on using the changeset viewer.