From f702f0ede9d294f18114b5caaf2e139c9e0a9cc4 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Mon, 27 Jul 2020 09:01:00 +0200 Subject: [PATCH] Compress only if Content-Type is right --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index 04a7d69..67771e0 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -373,6 +373,8 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col } else { if (index == "Location" && statuscode == 0) { statuscode = 303; + } else if (index == "Content-Type") { + type = data; } req.setField(index, data); }