1
0
mirror of https://github.com/moby/moby.git synced 2025-12-07 19:42:23 +03:00

Add GOOS in User-Agent

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard
2015-06-04 10:29:57 -07:00
committed by John Howard
parent b26428257f
commit 543cf79ffb
5 changed files with 20 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ func (cli *DockerCli) clientRequest(method, path string, in io.Reader, headers m
req.Header.Set(k, v)
}
req.Header.Set("User-Agent", "Docker-Client/"+dockerversion.VERSION)
req.Header.Set("User-Agent", "Docker-Client/"+dockerversion.VERSION+" ("+runtime.GOOS+")")
req.URL.Host = cli.addr
req.URL.Scheme = cli.scheme