From 96a1d3c3c462df075e9e267a8b061d4bc81e269a Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sun, 4 Jun 2023 18:50:02 +0000 Subject: [PATCH] Move stream assignment; this makes debugging easier. --- src/Matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Matrix.c b/src/Matrix.c index db6b7a4..802979e 100644 --- a/src/Matrix.c +++ b/src/Matrix.c @@ -46,6 +46,7 @@ MatrixHttpHandler(HttpServerContext * context, void *argp) RouteArgs routeArgs; requestPath = HttpRequestPath(context); + stream = HttpServerStream(context); Log(LOG_DEBUG, "%s %s", HttpRequestMethodToString(HttpRequestMethodGet(context)), @@ -101,7 +102,6 @@ MatrixHttpHandler(HttpServerContext * context, void *argp) Free(contentLen); - stream = HttpServerStream(context); JsonEncode(response, stream, JSON_DEFAULT); JsonFree(response); StreamPrintf(stream, "\n");