🐛 Gracefully handle non existing Accept-Encoding header
See https://community.octoprint.org/t/22738
This commit is contained in:
1 parent
33d28e6226
commit
3111846ddc
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user