mirror of
https://github.com/minio/minio.git
synced 2026-11-11 06:29:05 +00:00
Exporting WriteErrorResponse
This commit is contained in:
1 parent
3fb4f2894d
commit
e05d46a0b5
4 files changed
+34
-33
No files matched your search
@@ -58,7 +58,7 @@ func validateHandler(conf config.Config, h http.Handler) http.Handler {
|
||||
func (h vHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
acceptsContentType := getContentType(r)
|
||||
if acceptsContentType == unknownContentType {
|
||||
writeErrorResponse(w, r, NotAcceptable, acceptsContentType, r.URL.Path)
|
||||
WriteErrorResponse(w, r, NotAcceptable, acceptsContentType, r.URL.Path)
|
||||
return
|
||||
}
|
||||
// success
|
||||
|
||||
Reference in new issue
Block a user