mirror of
https://github.com/project-zot/zot.git
synced 2025-02-17 23:45:36 -05:00
routes: ignore media-type for PatchBlobUpload
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
8f729820f5
commit
9ca6eea940
1 changed files with 0 additions and 7 deletions
|
@ -830,13 +830,6 @@ func (rh *RouteHandler) PatchBlobUpload(w http.ResponseWriter, r *http.Request)
|
|||
return
|
||||
}
|
||||
|
||||
if contentType := r.Header.Get("Content-Type"); contentType != BinaryMediaType {
|
||||
rh.c.Log.Warn().Str("actual", contentType).Str("expected", BinaryMediaType).Msg("invalid media type")
|
||||
w.WriteHeader(http.StatusUnsupportedMediaType)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
var clen int64
|
||||
|
|
Loading…
Add table
Reference in a new issue