Skip to content

Commit

Permalink
Fix http method being locked to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
Jono Rogers committed Aug 3, 2017
1 parent 29e319e commit 6281510
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private async Task<HttpResponseMessage> DoPostPutAsync<T>(HttpMethod method, str
// a new StringContent must be created for each retry
// as it is disposed after each call

var requestMessage = new HttpRequestMessage(HttpMethod.Post, uri);
var requestMessage = new HttpRequestMessage(method, uri);

requestMessage.Content = new StringContent(JsonConvert.SerializeObject(item), System.Text.Encoding.UTF8, "application/json");

Expand Down

0 comments on commit 6281510

Please sign in to comment.