Browse Source

Backing out extra indentation.

Dan Helfman 9 years ago
parent
commit
122ef0cc27
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      controller/Expire.py

+ 6
- 6
controller/Expire.py View File

@@ -6,11 +6,11 @@ def strongly_expire( function ):
6 6
   Decorator that sends headers that instruct browsers and proxies not to cache.
7 7
   """
8 8
   def expire( *args, **kwargs ):
9
-      cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
10
-      cherrypy.response.headers[ "Cache-Control" ] = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
11
-      cherrypy.response.headers[ "Pragma" ] = "no-cache"
9
+    cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
10
+    cherrypy.response.headers[ "Cache-Control" ] = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
11
+    cherrypy.response.headers[ "Pragma" ] = "no-cache"
12 12
 
13
-      return function( *args, **kwargs )
13
+    return function( *args, **kwargs )
14 14
 
15 15
   return expire
16 16
 
@@ -22,8 +22,8 @@ def weakly_expire( function ):
22 22
   breaking Internet Explorer HTTPS file downloads.
23 23
   """
24 24
   def expire( *args, **kwargs ):
25
-      cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
25
+    cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
26 26
 
27
-      return function( *args, **kwargs )
27
+    return function( *args, **kwargs )
28 28
 
29 29
   return expire