Skip to content

Commit

Permalink
connection: That's a permanent redirect, thanks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Jan 4, 2025
1 parent 721659f commit d7eeac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection.pike
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ __async__ void http_request(Protocols.HTTP.Server.Request req)
//This check shouldn't be necessary; the session value can't easily be set except on this one host.
string host = deduce_host(req->request_headers);
if (host == "sikorsky.rosuav.com") {
req->response_and_finish(redirect("https://" + dest + req->full_query));
req->response_and_finish(redirect("https://" + dest + req->full_query, 301));
return;
}
//Otherwise carry on as if the autoxfr marker wasn't there. (This also applies to non-GET requests.)
Expand Down

0 comments on commit d7eeac0

Please sign in to comment.