We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90636ac commit f7a4db3Copy full SHA for f7a4db3
roundup/scripts/roundup_server.py
@@ -336,7 +336,9 @@ def inner_run_cgi(self):
336
self.send_response(301)
337
# redirect - XXX https??
338
protocol = 'http'
339
- url = '%s://%s%s/'%(protocol, self.headers['host'], self.path)
+ url = '%s://%s%s/'%(protocol, self.headers['host'], rest)
340
+ if query:
341
+ url += '?' + query
342
self.send_header('Location', url)
343
self.end_headers()
344
self.wfile.write('Moved Permanently')
0 commit comments