Browse Source

Merge pull request #811 from rpicard/remove_options_workaround

Remove Werkzeug bug workaround from flask/app.py
pull/798/merge
Armin Ronacher 11 years ago
parent
commit
da49f7398d
  1. 5
      flask/app.py

5
flask/app.py

@ -968,11 +968,6 @@ class Flask(_PackageBoundObject):
# Add the required methods now. # Add the required methods now.
methods |= required_methods methods |= required_methods
# due to a werkzeug bug we need to make sure that the defaults are
# None if they are an empty dictionary. This should not be necessary
# with Werkzeug 0.7
options['defaults'] = options.get('defaults') or None
rule = self.url_rule_class(rule, methods=methods, **options) rule = self.url_rule_class(rule, methods=methods, **options)
rule.provide_automatic_options = provide_automatic_options rule.provide_automatic_options = provide_automatic_options

Loading…
Cancel
Save