Skip to content

Commit

Permalink
Reset RootDomain on every request
Browse files Browse the repository at this point in the history
This fixes some oddities introduced with the fixes for regional
endpoints in RateLimitedRequester.
  • Loading branch information
ciarancrocker committed Jun 15, 2014
1 parent 7aefeaf commit 076bc0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RiotSharp/Requester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ public static Requester Instance

public virtual string CreateRequest(string relativeUrl, Region region, List<string> addedArguments = null)
{
RootDomain = "global.api.pvp.net";
var request = PrepareRequest(relativeUrl, addedArguments);
return GetResponse(request);
}

public virtual async Task<string> CreateRequestAsync(string relativeUrl, Region region,
List<string> addedArguments = null)
{
RootDomain = "global.api.pvp.net";
var request = PrepareRequest(relativeUrl, addedArguments);
return await GetResponseAsync(request);
}
Expand Down

0 comments on commit 076bc0e

Please sign in to comment.