From 487675b035d6af0252b2795d092367a37088a591 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 23 Jan 2018 20:19:21 +0000 Subject: [PATCH] Added a default user agent on all API calls --- src/Ombi.Api/OmbiHttpClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ombi.Api/OmbiHttpClient.cs b/src/Ombi.Api/OmbiHttpClient.cs index 77ea9d012..ed7c596dd 100644 --- a/src/Ombi.Api/OmbiHttpClient.cs +++ b/src/Ombi.Api/OmbiHttpClient.cs @@ -77,6 +77,7 @@ namespace Ombi.Api _handler = await GetHandler(); } _client = new HttpClient(_handler); + _client.DefaultRequestHeaders.Add("User-Agent","Ombi"); } }