removed unwanted whitespaces
This commit is contained in:
+2
-1
@@ -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):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user