mirror of
https://github.com/iv-org/invidious.git
synced 2024-09-11 01:18:06 +02:00
Use 301 for HTTP redirect
This commit is contained in:
parent
298af854fc
commit
cf07b66c12
@ -345,7 +345,7 @@ if Kemal.config.ssl && redirect
|
|||||||
context.response.headers.add "Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload"
|
context.response.headers.add "Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload"
|
||||||
redirect_url = "https://#{context.request.host}#{context.request.path}?#{context.request.query}"
|
redirect_url = "https://#{context.request.host}#{context.request.path}?#{context.request.query}"
|
||||||
context.response.headers.add "Location", redirect_url
|
context.response.headers.add "Location", redirect_url
|
||||||
context.response.status_code = 302
|
context.response.status_code = 301
|
||||||
end
|
end
|
||||||
|
|
||||||
server.listen
|
server.listen
|
||||||
|
Loading…
Reference in New Issue
Block a user