Force HTTP/1.1 for POSTs to work around High Sierra HttpClient issue.
This commit is contained in:
parent
e8f798fb5a
commit
4b5bd5a066
|
|
@ -55,7 +55,12 @@ namespace E2ETests
|
|||
private async Task<HttpResponseMessage> DoPostAsync(Uri uri, HttpContent content)
|
||||
{
|
||||
_logger.LogInformation("POST {0}", uri.ToString());
|
||||
var resp = await _httpClient.PostAsync(uri, content);
|
||||
var request = new HttpRequestMessage(HttpMethod.Post, uri)
|
||||
{
|
||||
Content = content,
|
||||
Version = new Version(1, 1),
|
||||
};
|
||||
var resp = await _httpClient.SendAsync(request);
|
||||
LogHeaders(resp, LogLevel.Information);
|
||||
return resp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue