Merge pull request #8408 from tonistiigi/8407-fix-host-header
Fix Host header on stream commands Upstream-commit: 887d9238f5af04123755dcf513c28c891246363b Component: engine
This commit is contained in:
@ -131,7 +131,7 @@ func (cli *DockerCli) streamHelper(method, path string, setRawTerminal bool, in
|
||||
in = bytes.NewReader([]byte{})
|
||||
}
|
||||
|
||||
req, err := http.NewRequest(method, fmt.Sprintf("http://v%s%s", api.APIVERSION, path), in)
|
||||
req, err := http.NewRequest(method, fmt.Sprintf("/v%s%s", api.APIVERSION, path), in)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user