From 045ed246cae14f5a7b5b4d4c4705045ce9bc14d2 Mon Sep 17 00:00:00 2001 From: Timothy Gerstel Date: Wed, 28 Aug 2019 12:05:01 -0400 Subject: [PATCH] Exposed respondWithUnixFile2 so that server REST API can respond with log files in ASCII/UTF8 rather than base64 Signed-off-by: Timothy Gerstel --- c/httpserver.c | 1 - h/httpserver.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/c/httpserver.c b/c/httpserver.c index ad3935dc5..1f975b9c3 100644 --- a/c/httpserver.c +++ b/c/httpserver.c @@ -3465,7 +3465,6 @@ static void respondWithUnixFileInternal(HttpResponse* response, char* absolutePa static void respondWithUnixDirectoryInternal(HttpResponse* response, char* absolutePath, int jsonMode, int secureFlag); static void respondWithUnixFile(HttpResponse* response, char* absolutePath, int jsonMode, bool asB64); -static void respondWithUnixFile2(HttpService* service, HttpResponse* response, char* absolutePath, int jsonMode, int autocvt, bool asB64); void respondWithUnixDirectory(HttpResponse *response, char* absolutePath, int jsonMode); void respondWithUnixFileSafer(HttpResponse* response, char* absolutePath, int jsonMode); void respondWithUnixDirectorySafer(HttpResponse* response, char* absolutePath, int jsonMode); diff --git a/h/httpserver.h b/h/httpserver.h index 9d7ebd4ab..35be3627e 100644 --- a/h/httpserver.h +++ b/h/httpserver.h @@ -463,6 +463,7 @@ HttpService *makeWebSocketService(char *name, char *urlMask, WSEndpoint *endpoin jsonPrinter *initWSJsonPrinting(WSSession *session, int maxFrameSize); void flushWSJsonPrinting(WSSession *session); +void respondWithUnixFile2(HttpService* service, HttpResponse* response, char* absolutePath, int jsonMode, int autocvt, bool asB64); void respondWithUnixFileContents(HttpResponse* response, char *absolutePath, int jsonMode); void respondWithUnixFileContents2(HttpService* service, HttpResponse* response, char *absolutePath, int jsonMode); void respondWithUnixFileContentsWithAutocvtMode(HttpService* service, HttpResponse* response, char *absolutePath, int jsonMode, int convert);