Commits

Pedro Algarvio  committed 6c5955b

Port my changes to Flask 0.7

  • Participants
  • Parent commits 525ca42

Comments (0)

Files changed (1)

File flaskext/principal.py

         :param identity: The identity to set
         """
         if self.skip_static and \
-                            request.path.startswith(current_app.static_path):
+                            request.path.startswith(current_app.static_url_path):
             return
 
         self._set_thread_identity(identity)
 
     def _on_before_request(self):
         if self.skip_static and \
-                            request.path.startswith(current_app.static_path):
+                            request.path.startswith(current_app.static_url_path):
             return
         g.identity = AnonymousIdentity()
         for loader in self.identity_loaders: