mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-31 15:26:29 +00:00
replace the old useless HOST_URL by env.request.headers["Host"]
This commit is contained in:
@@ -226,7 +226,7 @@ module Invidious::Routes::API::V1::Authenticated
|
||||
end
|
||||
|
||||
playlist = create_playlist(title, privacy, user)
|
||||
env.response.headers["Location"] = "#{HOST_URL}/api/v1/auth/playlists/#{playlist.id}"
|
||||
env.response.headers["Location"] = "#{env.request.headers["Host"]}/api/v1/auth/playlists/#{playlist.id}"
|
||||
env.response.status_code = 201
|
||||
{
|
||||
"title" => title,
|
||||
|
||||
Reference in New Issue
Block a user