Ignore:
Timestamp:
Aug 2, 2017, 6:46:15 PM (7 years ago)
Author:
alloc
Message:

Fixes update A16.2

File:
1 edited

Legend:

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

    r279 r306  
    1515                                return;
    1616                        }
     17
     18                        WebCommandResult.ResultType responseType =
     19                                req.QueryString ["raw"] != null ? WebCommandResult.ResultType.Raw :
     20                                (req.QueryString ["simple"] != null ? WebCommandResult.ResultType.ResultOnly :
     21                                        WebCommandResult.ResultType.Full);
    1722
    1823                        string commandline = req.QueryString ["command"];
     
    3641                        }
    3742
    38                         // TODO: Execute command (store resp as IConsoleConnection instance to deliver response to the single client?)
    39 
    4043                        resp.SendChunked = true;
    41                         WebCommandResult wcr = new WebCommandResult (commandPart, argumentsPart, resp);
     44                        WebCommandResult wcr = new WebCommandResult (commandPart, argumentsPart, responseType, resp);
    4245                        SdtdConsole.Instance.ExecuteAsync (commandline, wcr);
    4346                }
Note: See TracChangeset for help on using the changeset viewer.