Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/antonmoiseev/RestSharp
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoung committed Jan 26, 2012
2 parents ec79b55 + 5be192f commit 14dabd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RestSharp/RestClient.Async.cs
Expand Up @@ -46,11 +46,12 @@ public virtual RestRequestAsyncHandle ExecuteAsync(IRestRequest request, Action<
var http = HttpFactory.Create();
AuthenticateIfNeeded(this, request);

ConfigureHttp(request, http);

// add Accept header based on registered deserializers
var accepts = string.Join(", ", AcceptTypes.ToArray());
AddDefaultParameter("Accept", accepts, ParameterType.HttpHeader);

ConfigureHttp(request, http);

HttpWebRequest webRequest = null;
var asyncHandle = new RestRequestAsyncHandle();

Expand Down

0 comments on commit 14dabd5

Please sign in to comment.