mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
Exporting WriteErrorResponse
This commit is contained in:
@@ -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