Browse Source

- Builder: hotfix for bug introduced in 3adf9ce04ef1632f82f7bd1585c135bb141aa450

Solomon Hykes 12 years ago
parent
commit
dbfb3eb923
1 changed files with 1 additions and 1 deletions
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -197,7 +197,7 @@ func (cli *DockerCli) CmdBuild(args ...string) error {
 	v := &url.Values{}
 	v.Set("t", *tag)
 	// Send the multipart request with correct content-type
-	req, err := http.NewRequest("POST", fmt.Sprintf("/v%s/build?%s", APIVERSION, v.Encode()), multipartBody)
+	req, err := http.NewRequest("POST", fmt.Sprintf("/v%g/build?%s", APIVERSION, v.Encode()), multipartBody)
 	if err != nil {
 		return err
 	}