File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Version 2.2.5
33
44Unreleased
55
6+ - Update for compatibility with Werkzeug 2.3.3.
7+
68
79Version 2.2.4
810-------------
Original file line number Diff line number Diff line change @@ -168,10 +168,21 @@ def session_transaction(
168168 app .session_interface .save_session (app , sess , resp )
169169
170170 if hasattr (self , "_update_cookies_from_response" ):
171- self ._update_cookies_from_response (
172- ctx .request .host .partition (":" )[0 ], resp .headers .getlist ("Set-Cookie" )
173- )
171+ try :
172+ # Werkzeug>=2.3.3
173+ self ._update_cookies_from_response (
174+ ctx .request .host .partition (":" )[0 ],
175+ ctx .request .path ,
176+ resp .headers .getlist ("Set-Cookie" ),
177+ )
178+ except TypeError :
179+ # Werkzeug>=2.3.0,<2.3.3
180+ self ._update_cookies_from_response ( # type: ignore[call-arg]
181+ ctx .request .host .partition (":" )[0 ],
182+ resp .headers .getlist ("Set-Cookie" ), # type: ignore[arg-type]
183+ )
174184 else :
185+ # Werkzeug<2.3.0
175186 self .cookie_jar .extract_wsgi ( # type: ignore[union-attr]
176187 ctx .request .environ , resp .headers
177188 )
You can’t perform that action at this time.
0 commit comments