Skip to content

Commit

Permalink
Merge pull request #5 from jlhawn/vbatts-v2_hacking
Browse files Browse the repository at this point in the history
Set content-type to json on v2 registry GET manifest
  • Loading branch information
vbatts committed Aug 29, 2014
2 parents 88d3e14 + 822c00f commit 1a60206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions registry/v2/server/manifests.go
Expand Up @@ -38,6 +38,9 @@ func getManifest(w http.ResponseWriter, r *http.Request) {
return
}

// Manifest should be a JSON Web Signature
w.Header().Set("Content-Type", "application/json")

bytesCopied, err := io.Copy(w, manifestFile)
if err != nil {
log.Printf("unable to copy manifest file %q: %s\n", manifestPath, err)
Expand Down

0 comments on commit 1a60206

Please sign in to comment.