mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
handler now only listens to GET requests
This commit is contained in:
parent
c766f3617b
commit
1176d38e84
@ -60,11 +60,11 @@ func createSelectCases(channels []<-chan error) []reflect.SelectCase {
|
||||
|
||||
func getHttpHandler() http.Handler {
|
||||
mux := mux.NewRouter()
|
||||
mux.HandleFunc("/{bucket}/{object:.*}", storageHandler)
|
||||
mux.HandleFunc("/{bucket}/{object:.*}", getObjectHandler).Methods("GET")
|
||||
return mux
|
||||
}
|
||||
|
||||
func storageHandler(w http.ResponseWriter, req *http.Request) {
|
||||
func getObjectHandler(w http.ResponseWriter, req *http.Request) {
|
||||
vars := mux.Vars(req)
|
||||
bucket := vars["bucket"]
|
||||
object := vars["object"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user