File tree 2 files changed +16
-3
lines changed
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
3
3
4
4
Unreleased
5
5
6
+ - Update for compatibility with Werkzeug 2.3.3.
7
+
6
8
7
9
Version 2.2.4
8
10
-------------
Original file line number Diff line number Diff line change @@ -168,10 +168,21 @@ def session_transaction(
168
168
app .session_interface .save_session (app , sess , resp )
169
169
170
170
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
+ )
174
184
else :
185
+ # Werkzeug<2.3.0
175
186
self .cookie_jar .extract_wsgi ( # type: ignore[union-attr]
176
187
ctx .request .environ , resp .headers
177
188
)
You can’t perform that action at this time.
0 commit comments