Merge pull request #1502 from RichardScothern/auth-url-endpoints

URL parse auth endpoints to normalize hostname to lowercase.
This commit is contained in:
Richard Scothern
2016-03-14 16:28:24 -07:00
5 changed files with 61 additions and 17 deletions

View File

@@ -319,6 +319,7 @@ func (buh *blobUploadHandler) blobUploadResponse(w http.ResponseWriter, r *http.
w.Header().Set("Docker-Upload-UUID", buh.UUID)
w.Header().Set("Location", uploadURL)
w.Header().Set("Content-Length", "0")
w.Header().Set("Range", fmt.Sprintf("0-%d", endRange))