We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ebf4666 + 7614fdf commit 4425867Copy full SHA for 4425867
jwt_signature_validator/encoded_payload.py
@@ -84,7 +84,9 @@ async def verify_signature():
84
return {"type": receive_["type"], "body": signature, "more_body": False}
85
86
headers = MutableHeaders(scope=scope)
87
- if headers.get("Content-Type") == "application/json":
+ if headers.get("Content-Type") is None:
88
+ raise HTTPException(status_code=406, detail="Unacceptable Content Type!")
89
+ elif headers.get("Content-Type") == "application/json":
90
host = headers.get("host", "").split(":")[0]
91
is_protected_host = False
92
for pattern in self.protect_hosts:
0 commit comments