A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/moby/moby/issues/45935 below:

Golang client fails to attach to streams with "http: invalid Host header" with go1.20.6, go1.19.11 · Issue #45935 · moby/moby · GitHub

Description

Since updating to Golang 1.20.6, the moby Golang client starts failing with http: invalid Host header errors when used against the default unix socket at least. Normal container operations seem to be fine, but ContainerAttach and ContainerExecAttach fail in particular.

I'm assuming this is related to Golang backporting Host header sanitization into 1.20 via golang/go#61076.

Reproduce

Create a container with the Golang client and try to attach to its streams. I can try to cook up a minimal code example if necessary.

Expected behavior

No response

docker version
github.com/docker/docker v24.0.4+incompatible
docker info
Server:
 Server Version: 23.0.4
Additional Info

No response

FlerioEU, amacfie-tc, teutat3s, felipelalli, very-doge-wow and 3 morefelipelalli and CorrectRoadHdsimansk and miguel-teixeira-kr


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4