From ec0b7f20685e44898bc97b1f3a4acb2b0279713a Mon Sep 17 00:00:00 2001 From: Martin Lee Date: Sat, 7 Mar 2020 20:18:39 +0000 Subject: [PATCH] Remove Ip overide --- BritishHorseRacingApi/BaseApiClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BritishHorseRacingApi/BaseApiClient.cs b/BritishHorseRacingApi/BaseApiClient.cs index 6d44fc1..bc12388 100644 --- a/BritishHorseRacingApi/BaseApiClient.cs +++ b/BritishHorseRacingApi/BaseApiClient.cs @@ -37,13 +37,13 @@ namespace BritishHorseRacingApi } _lastRequest = DateTime.UtcNow; } - public static string IpAddress = "192.225.208.11"; + protected async Task SendRequest(string endpoint) { await DelayBetweenRequests(); var message = new CustomHttpRequestMessage(HttpMethod.Get, endpoint); - message.IpToOveride = IPAddress.Parse(IpAddress); + message.Headers.Add("Accept", "application/json, text/plain, */*"); await PresendRequestAlterations(message);