forked from Telodendria/Telodendria
Move stream assignment; this makes debugging easier.
This commit is contained in:
parent
095e05e927
commit
96a1d3c3c4
1 changed files with 1 additions and 1 deletions
|
@ -46,6 +46,7 @@ MatrixHttpHandler(HttpServerContext * context, void *argp)
|
||||||
RouteArgs routeArgs;
|
RouteArgs routeArgs;
|
||||||
|
|
||||||
requestPath = HttpRequestPath(context);
|
requestPath = HttpRequestPath(context);
|
||||||
|
stream = HttpServerStream(context);
|
||||||
|
|
||||||
Log(LOG_DEBUG, "%s %s",
|
Log(LOG_DEBUG, "%s %s",
|
||||||
HttpRequestMethodToString(HttpRequestMethodGet(context)),
|
HttpRequestMethodToString(HttpRequestMethodGet(context)),
|
||||||
|
@ -101,7 +102,6 @@ MatrixHttpHandler(HttpServerContext * context, void *argp)
|
||||||
|
|
||||||
Free(contentLen);
|
Free(contentLen);
|
||||||
|
|
||||||
stream = HttpServerStream(context);
|
|
||||||
JsonEncode(response, stream, JSON_DEFAULT);
|
JsonEncode(response, stream, JSON_DEFAULT);
|
||||||
JsonFree(response);
|
JsonFree(response);
|
||||||
StreamPrintf(stream, "\n");
|
StreamPrintf(stream, "\n");
|
||||||
|
|
Loading…
Reference in a new issue