Merge pull request #10160 from sagarvora/patch-4

fix: werkzeug.exceptions.BadRequestKeyError
This commit is contained in:
mergify[bot] 2020-05-02 17:46:09 +00:00 committed by GitHub
commit 32541ca6ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ class Monitor:
if self.data.transaction_type == "request":
self.data.request.status_code = response.status_code
self.data.request.response_length = int(response.headers["Content-Length"])
self.data.request.response_length = int(response.headers.get("Content-Length", 0))
self.store()
except Exception: