Adding content type to images/(name)/get
This commit is contained in:
parent
844c13bce6
commit
1211065c8d
1 changed files with 3 additions and 0 deletions
3
api.go
3
api.go
|
@ -536,6 +536,9 @@ func postImagesPush(srv *Server, version float64, w http.ResponseWriter, r *http
|
|||
|
||||
func getImagesGet(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
||||
name := vars["name"]
|
||||
if version > 1.0 {
|
||||
w.Header().Set("Content-Type", "application/x-tar")
|
||||
}
|
||||
err := srv.ImageExport(name, w)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue