Skip to content

Commit da49f73

Browse files
committed
Merge pull request pallets#811 from rpicard/remove_options_workaround
Remove Werkzeug bug workaround from flask/app.py
2 parents 1982c20 + b6116c1 commit da49f73

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

flask/app.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,6 @@ def index():
968968
# Add the required methods now.
969969
methods |= required_methods
970970

971-
# due to a werkzeug bug we need to make sure that the defaults are
972-
# None if they are an empty dictionary. This should not be necessary
973-
# with Werkzeug 0.7
974-
options['defaults'] = options.get('defaults') or None
975-
976971
rule = self.url_rule_class(rule, methods=methods, **options)
977972
rule.provide_automatic_options = provide_automatic_options
978973

0 commit comments

Comments
 (0)