Skip to content

Commit 1e5b618

Browse files
fix(litestar): Copy request body to prevent cookies mutation
1 parent f979abf commit 1e5b618

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry_sdk/integrations/litestar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from collections.abc import Set
2+
from copy import deepcopy
3+
24
import sentry_sdk
35
from sentry_sdk.consts import OP
46
from sentry_sdk.integrations import (
@@ -260,7 +262,7 @@ def event_processor(event, _):
260262

261263
event.update(
262264
{
263-
"request": request_info,
265+
"request": deepcopy(request_info),
264266
"transaction": tx_name,
265267
"transaction_info": tx_info,
266268
}

0 commit comments

Comments
 (0)