We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7d9864 commit dba043cCopy full SHA for dba043c
src/firebase_functions/private/util.py
@@ -114,7 +114,7 @@ def _on_call_valid_body(request: _Request) -> bool:
114
return False
115
116
# The body must have data.
117
- if request.json is None or "data" not in request.json:
+ if "data" not in request.json:
118
_logging.warning("Request body is missing data.", request.json)
119
120
@@ -143,7 +143,7 @@ def _on_call_valid_content_type(request: _Request) -> bool:
143
content_type: str | None = request.headers.get("Content-Type")
144
145
if content_type is None:
146
- _logging.warning("Request is missing Content-Type.", content_type)
+ _logging.warning("Request is missing Content-Type.")
147
148
149
# If it has a charset, just ignore it for now.
0 commit comments