|
@@ -89,7 +89,7 @@ func (cli *DockerCli) call(method, path string, data interface{}, passAuthInfo b
|
|
|
if data != nil {
|
|
|
req.Header.Set("Content-Type", "application/json")
|
|
|
} else if method == "POST" {
|
|
|
- req.Header.Set("Content-Type", "plain/text")
|
|
|
+ req.Header.Set("Content-Type", "text/plain")
|
|
|
}
|
|
|
resp, err := cli.HTTPClient().Do(req)
|
|
|
if err != nil {
|
|
@@ -135,7 +135,7 @@ func (cli *DockerCli) streamHelper(method, path string, setRawTerminal bool, in
|
|
|
req.URL.Host = cli.addr
|
|
|
req.URL.Scheme = cli.scheme
|
|
|
if method == "POST" {
|
|
|
- req.Header.Set("Content-Type", "plain/text")
|
|
|
+ req.Header.Set("Content-Type", "text/plain")
|
|
|
}
|
|
|
|
|
|
if headers != nil {
|
|
@@ -260,7 +260,7 @@ func (cli *DockerCli) monitorTtySize(id string, isExec bool) error {
|
|
|
sigchan := make(chan os.Signal, 1)
|
|
|
gosignal.Notify(sigchan, signal.SIGWINCH)
|
|
|
go func() {
|
|
|
- for _ = range sigchan {
|
|
|
+ for range sigchan {
|
|
|
cli.resizeTty(id, isExec)
|
|
|
}
|
|
|
}()
|