fix: werkzeug.exceptions.BadRequestKeyError

This commit is contained in:
Sagar Vora 2020-04-30 00:26:07 +05:30 committed by GitHub
parent f713585e68
commit fb663291e8
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: