Docker-buildx doens't work if built wih go-1.20.7

I try to build the selenium images from GitHub - SeleniumHQ/docker-selenium: Docker images for Selenium Grid. I am using gentoo and everything worked fine until I rebuild docker-buildx with go-1.20.7. I now get this error:

=> ERROR [internal] booting buildkit 16.9s
=> => pulling image moby/buildkit:buildx-stable-1 1.6s
=> => creating container buildx_buildkit_default 15.3s

[internal] booting buildkit:
#0 16.91 time=“2023-08-10T06:23:30Z” level=info msg=“found 1 workers, default="gftps7clzk74191718pd4mhnn"”
#0 16.91 `time="2023-08-10T06:23time=“2023-08-10T06:23:30Z” level=info msg=“found 1 workers, default="gftps7clzk74191718pd4mhnn"”
#0 16.91 time=“2023-08-10T06:23:30Z” level=info msg=“running server on /run/buildkit/buildkitd.sock”
#0 16.91 time=“2023-08-10T06:23:30Z” level=info msg=“running server on /run/buildkit/buildkitd.sock”


WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
ERROR: http: invalid Host header
make: *** [Makefile:38: base] Error 1
zsh: exit 2 make

The same problem occurs to build systemrescue using docker (as explained here: SystemRescue / systemrescue-sources · GitLab). It fails in the same way when building the docker images needed to build systemrescue.

This didn’t occur when docker-buildx was built with go-1.20.5.

Does somebody have any idea about this problem ?
Thanks in advance for your help.