From 2144c388a5dbf9359808d45053507fddf3895ec0 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 4 Mar 2018 11:00:35 -0600 Subject: [PATCH] Fix user-agent string --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 0bf09764..246cf08e 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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