You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor of Unauthorized used to take the description as the first argument, but now takes www_authenticate as the first argument. This breaks backwards compatibility with all existing callers of Unauthorized.
davidism
changed the title
0.15.0 breaks changes Unauthorized's argument ordering:
Change to Unauthorized's argument order breaks existing code
Mar 21, 2019
In this commit: https://github.com/pallets/werkzeug/pull/1319/files#diff-43a63db82587e91732eda181306d76c7R240
The constructor of
Unauthorized
used to take thedescription
as the first argument, but now takeswww_authenticate
as the first argument. This breaks backwards compatibility with all existing callers ofUnauthorized
.Would it be possible to change:
to
In 0.14.x,
abort(401, 'some error description')
now does a completely different thing in 0.15.0 - and that is a breaking change.405 - MethodNotAllowed
also shares this special case... but that's 11 years old at this point :\The text was updated successfully, but these errors were encountered: