Skip to content
Myr

werkzeug 2.3.3 compatibility

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 726d3f4 · Browse files · 2 files+16 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+16 added−3 removed

  • other:+16 added−3 removed

2 files+16 added−3 removed

modified:src/flask/testing.py+14 added-3 removed
166 unmodified lines
167 with ctx:168 app.session_interface.save_session(app, sess, resp)169170 if hasattr(self, "_update_cookies_from_response"):171 try:172 # Werkzeug>=2.3.3171 self._update_cookies_from_response(172 ctx.request.host.partition(":")[0], resp.headers.getlist("Set-Cookie")173 )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.3180 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 )184 else:185 # Werkzeug<2.3.0186 self.cookie_jar.extract_wsgi( # type: ignore[union-attr]187 ctx.request.environ, resp.headers188 )189
112 unmodified lines
modified:CHANGES.rst+2 added
1 unmodified line
2-------------34Unreleased56- Update for compatibility with Werkzeug 2.3.3.789Version 2.2.410-------------1112Released 2023-04-25
1421 unmodified lines