Fixes order checkout (#53)

This commit is contained in:
etomas 2017-03-13 12:43:56 +01:00
parent 4818f68902
commit c3444287ec

View File

@ -51,7 +51,9 @@ namespace eShopOnContainers.Core.Services.RequestProvider
AddHeaderParameter(httpClient, header);
}
HttpResponseMessage response = await httpClient.GetAsync(uri);
var content = new StringContent(JsonConvert.SerializeObject(data));
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
HttpResponseMessage response = await httpClient.PostAsync(uri, content);
await HandleResponse(response);