Skip to content

Commit a7883ec

Browse files
committed
fix: strip Authorization header, not Authentication
thx @bruno-garcia
1 parent dde0710 commit a7883ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/_wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def event_processor(event):
225225
k: v
226226
for k, v in request_info["headers"].items()
227227
if k.lower().replace("_", "-")
228-
not in ("set-cookie", "cookie", "authentication")
228+
not in ("set-cookie", "cookie", "authorization")
229229
}
230230

231231
return event_processor

0 commit comments

Comments
 (0)