Permalink
Browse files

Fixed redirect bug

  • Loading branch information...
1 parent a4f8e69 commit ae073f1ba76fa333ef5c727f8e33bb8cddb07075 @matthusby committed Feb 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 proxyHandler.py
View
@@ -17,7 +17,7 @@ def get(self):
self.response.headers.add_header('set-cookie', result.headers.get('set-cookie'))
if 'location' in result.headers:
- self.redirect('/' + result.headers.get('location'))
+ self.redirect(result.headers.get('location'))
else:
self.response.headers.add_header('content-type', result.headers['content-type'])
self.response.out.write(result.content)
@@ -38,6 +38,6 @@ def post(self):
self.response.headers.add_header('set-cookie', result.headers.get('set-cookie'))
if 'location' in result.headers:
- self.redirect('/' + result.headers.get('location'))
+ self.redirect(result.headers.get('location'))
else:
self.response.out.write(result.content)

0 comments on commit ae073f1

Please sign in to comment.