From ed7510f7bed9a882cfe86b2c122678b5a0edbb79 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 5 Jun 2018 14:49:40 +0200 Subject: [PATCH] CGI compress --- src/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.cpp b/src/client.cpp index e9c4856..2dfead3 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -308,7 +308,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col if (statuscode != -1) { statuscode = (statuscode == 0) ? 200 : statuscode; - bool compress = path.isStatic() && type.find("text/") == 0 && + bool compress = /*path.isStatic() &&*/ type.find("text/") == 0 && req.isExistingField("Accept-Encoding") && req.getField("Accept-Encoding").find("deflate") != string::npos;