Compress only if Content-Type is right

This commit is contained in:
2020-07-27 09:01:00 +02:00
parent 8a7b381d63
commit f702f0ede9

View File

@ -373,6 +373,8 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col
} else { } else {
if (index == "Location" && statuscode == 0) { if (index == "Location" && statuscode == 0) {
statuscode = 303; statuscode = 303;
} else if (index == "Content-Type") {
type = data;
} }
req.setField(index, data); req.setField(index, data);
} }