Commits

Rhys !  committed 68980bc

using request.path_qs

  • Participants
  • Parent commits 8952501

Comments (0)

Files changed (1)

 
 class Redirect(Handler):
     def get(self):
-        raise moved_permanently('http://www.lyrcl.co.cc%s%s' % (
-            self.request.path,
-            '?%s' % self.request.query_string if self.request.query_string
-                else ''))
+        raise moved_permanently('http://www.lyrcl.co.cc' + self.request.path_qs)
 
 application = WebApp([('.*', Redirect)])