mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add GOOS in User-Agent
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
b26428257f
commit
543cf79ffb
5 changed files with 20 additions and 3 deletions
|
@ -35,7 +35,7 @@ func (s *DockerSuite) TestVersionStatusCode(c *check.C) {
|
|||
|
||||
req, err := http.NewRequest("GET", "/v999.0/version", nil)
|
||||
c.Assert(err, check.IsNil)
|
||||
req.Header.Set("User-Agent", "Docker-Client/999.0")
|
||||
req.Header.Set("User-Agent", "Docker-Client/999.0 (os)")
|
||||
|
||||
res, err := client.Do(req)
|
||||
c.Assert(res.StatusCode, check.Equals, http.StatusBadRequest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue