Merge pull request #815 from harshavardhana/remove-cors-controller

Remove cors controller
This commit is contained in:
Harshavardhana 2015-08-31 17:20:37 -07:00
commit 90a247b336

View File

@ -21,7 +21,6 @@ import (
router "github.com/gorilla/mux"
"github.com/minio/minio/pkg/rpc"
"github.com/rs/cors"
)
// getRPCHandler rpc handler
@ -40,5 +39,5 @@ func getRPCHandler() http.Handler {
// registerRPC - register rpc handlers
func registerRPC(mux *router.Router, s *rpc.Server) http.Handler {
mux.Handle("/rpc", s)
return cors.Default().Handler(mux)
return mux
}