Commits

Steve Losh committed 38f27e9 Merge

Merge with flowblok.

Comments (0)

Files changed (2)

     @app.before_request
     def _csrf_check_exemptions():
         try:
-            dest = app.view_functions[app.match_request()[0]]
+            dest = app.view_functions.get(request.endpoint)
             g._csrf_exempt = dest in _exempt_views
         except NotFound:
             g._csrf_exempt = False
 
 setup(
     name='flask-csrf',
-    version='0.9.1',
+    version='0.9.2',
     url='http://sjl.bitbucket.org/flask-csrf/',
     license='MIT',
     author='Steve Losh',
     zip_safe=False,
     platforms='any',
     install_requires=[
-        'Flask'
+        'Flask>0.1'
     ],
     classifiers=[
         'Development Status :: 4 - Beta',