mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix user-agent string
This commit is contained in:
parent
814cdc9971
commit
2144c388a5
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ get "/watch" do |env|
|
|||
end
|
||||
|
||||
reddit_client = HTTP::Client.new(REDDIT_URL, CONTEXT)
|
||||
headers = HTTP::Headers{"User-Agent" => "User-Agent: web:invidio.us:v0.1.0 (by /u/omarroth)"}
|
||||
headers = HTTP::Headers{"User-Agent" => "web:invidio.us:v0.1.0 (by /u/omarroth)"}
|
||||
begin
|
||||
reddit_comments, reddit_thread = get_reddit_comments(id, reddit_client, headers)
|
||||
rescue ex
|
||||
|
|
Loading…
Reference in a new issue