Skip to content
Myr

Merge pull request #811 from rpicard/remove_options_workaround

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

Remove Werkzeug bug workaround from flask/app.py

authored by Armin Ronacher · committed by Armin Ronacher · parents 1982c20, b6116c1 · Browse files · 1 file+0 added−5 removed
This commit

State

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

Diff stats

1 file+0 added−5 removed

  • other:+0 added−5 removed

1 file+0 added−5 removed

modified:flask/app.py-5 removed
966 unmodified lines
967968 # Add the required methods now.969 methods |= required_methods970971 # due to a werkzeug bug we need to make sure that the defaults are972 # None if they are an empty dictionary. This should not be necessary973 # with Werkzeug 0.7974 options['defaults'] = options.get('defaults') or None975971 rule = self.url_rule_class(rule, methods=methods, **options)972 rule.provide_automatic_options = provide_automatic_options973974 self.url_map.add(rule)
863 unmodified lines