From 08b8208a4e471395d83d57ec03404c86b2a11921 Mon Sep 17 00:00:00 2001 From: Akayeshmantha Date: Wed, 5 Aug 2020 11:50:04 +0200 Subject: [PATCH] Pass service param to use on force encoding. Signed-off-by: Akayeshmantha --- c/unixFileService.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/unixFileService.c b/c/unixFileService.c index eb834ad29..81ba518e9 100644 --- a/c/unixFileService.c +++ b/c/unixFileService.c @@ -701,7 +701,7 @@ static int serveUnixFileContents(HttpService *service, HttpResponse *response) { } } else if (!strcmp(request->method, methodGET)) { - respondWithUnixFileContentsWithAutocvtMode(NULL, response, routeFileName, TRUE, 0); + respondWithUnixFileContentsWithAutocvtMode(service, response, routeFileName, TRUE, 0); } else if (!strcmp(request->method, methodDELETE)) { if (doesFileExist(routeFileName) == true) {