Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Blueprint.app_url_value_preprocessor.

  • Loading branch information...
commit f8caa54d31605f8997698d5c6c295ff4cff9ecdb 1 parent f679888
@embe embe authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 flask/blueprints.py
View
4 flask/blueprints.py
@@ -292,8 +292,8 @@ def url_defaults(self, f):
def app_url_value_preprocessor(self, f):
"""Same as :meth:`url_value_preprocessor` but application wide.
"""
- self.record_once(lambda s: s.app.url_value_preprocessor
- .setdefault(self.name, []).append(f))
+ self.record_once(lambda s: s.app.url_value_preprocessors
+ .setdefault(None, []).append(f))
return f
def app_url_defaults(self, f):
Please sign in to comment.
Something went wrong with that request. Please try again.