Skip to content

Commit

Permalink
Adding content type to images/(name)/get
Browse files Browse the repository at this point in the history
  • Loading branch information
fkautz committed Nov 20, 2013
1 parent 844c13b commit 1211065
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1211065

Please sign in to comment.