🐛 Gracefully handle non existing Accept-Encoding header

See https://community.octoprint.org/t/22738
This commit is contained in:
Gina Häußge committed 2020-08-06 16:12:41 +02:00
1 parent 33d28e6226
commit 3111846ddc
1 file changed
+1 -1
+1 -1
View File
@@ -999,7 +999,7 @@ class LargeResponseHandler(RequestlessExceptionLoggingMixin,
def should_use_precompressed(self):
return (self._is_pre_compressed
and "gzip" in self.request.headers.get("Accept-Encoding"))
and "gzip" in self.request.headers.get("Accept-Encoding", ""))
def get(self, path, include_body=True):
if self._access_validation is not None: