File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def render_template(self, request):
13
13
print (f'If you want to reload the current view, use `Reload`.' )
14
14
exit (1 )
15
15
16
- request .send_response (301 )
16
+ request .send_response (307 )
17
17
request .send_header (
18
- 'Location' , f'http://localhost: { Vars . INTERNAL_HTTP_SERVER_PORT } ' + self .path )
18
+ 'Location' , self .path )
19
19
return None , True
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def render_template(self, request):
17
17
f'Path `{ request .path } ` returns reload in a loop (infinite recursion).' )
18
18
exit (1 )
19
19
20
- request .send_response (301 )
20
+ request .send_response (307 )
21
21
request .send_header (
22
- 'Location' , f'http://localhost: { Vars . INTERNAL_HTTP_SERVER_PORT } ' + request .path )
22
+ 'Location' , request .path )
23
23
return None , True
You can’t perform that action at this time.
0 commit comments