Merge pull request #110 from harshavardhana/pr_out_add_bucket_resources_to_ignore_handler

master
Harshavardhana 10 years ago
commit c3287b7ad0
  1. 6
      pkg/webapi/minioapi/minioapi.go

@ -61,12 +61,12 @@ func HttpHandler(storage mstorage.Storage) http.Handler {
mux.HandleFunc("/{bucket}/{object:.*}", api.headObjectHandler).Methods("HEAD")
mux.HandleFunc("/{bucket}/{object:.*}", api.putObjectHandler).Methods("PUT")
return ignoreUnimplementedBucketResources(mux)
return ignoreUnimplementedResources(mux)
}
func ignoreUnimplementedBucketResources(h http.Handler) http.Handler {
func ignoreUnimplementedResources(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if ignoreUnImplementedObjectResources(r) {
if ignoreUnImplementedObjectResources(r) || ignoreUnImplementedBucketResources(r) {
w.WriteHeader(http.StatusNotImplemented)
} else {
h.ServeHTTP(w, r)

Loading…
Cancel
Save