Skip to content

Commit

Permalink
Fix HTTP version to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
markdchurchill committed Jan 28, 2020
1 parent f9d501c commit d8c427d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Docker.DotNet/DockerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ internal HttpRequestMessage PrepareRequest(HttpMethod method, string path, IQuer

var request = new HttpRequestMessage(method, HttpUtility.BuildUri(_endpointBaseUri, this._requestedApiVersion, path, queryString));

request.Version = new Version(1, 11);
request.Version = new Version(1, 1);

request.Headers.Add("User-Agent", UserAgent);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ private async Task TunnelThroughProxyAsync(HttpRequestMessage request, Stream tr
// CONNECT server.example.com:80 HTTP / 1.1
// Host: server.example.com:80
var connectRequest = new HttpRequestMessage();
connectRequest.Version = new Version(1, 11);
connectRequest.Version = new Version(1, 1);

connectRequest.Headers.ProxyAuthorization = request.Headers.ProxyAuthorization;
connectRequest.Method = new HttpMethod("CONNECT");
Expand Down

0 comments on commit d8c427d

Please sign in to comment.