removed unwanted whitespaces

This commit is contained in:
mdipierro
2012-08-16 11:56:07 -05:00
parent f78f27982b
commit a608df5a29
90 changed files with 253 additions and 162 deletions
+2 -1
View File
@@ -128,7 +128,7 @@ class HTTP(BaseException):
def redirect(location, how=303, client_side=False):
if location:
from gluon import current
from gluon import current
loc = location.replace('\r', '%0D').replace('\n', '%0A')
if client_side and current.request.ajax:
raise HTTP(200, **{'web2py-redirect-location': loc})
@@ -141,3 +141,4 @@ def redirect(location, how=303, client_side=False):