We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7c0ec6 commit 3b71c16Copy full SHA for 3b71c16
1 file changed
sentry_sdk/integrations/flask.py
@@ -188,6 +188,12 @@ def _set_request_body_data_on_streaming_segment(
188
with capture_internal_exceptions():
189
content_length = int(request.content_length or 0)
190
191
+ # Proceeding without a content length means that we may be consuming the request
192
+ # without respecting the bounds specified by the user via `max_request_body_size`
193
+ # option in the SDK.
194
+ if not content_length:
195
+ return
196
+
197
if not request_body_within_bounds(client, content_length):
198
data = AnnotatedValue.substituted_because_over_size_limit()
199
else:
0 commit comments