aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_handlers.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-07-22 19:55:53 -0700
committerChris Lu <chris.lu@gmail.com>2018-07-22 19:55:53 -0700
commitc133e72f623fc12b04fe3a34aa2a9d0da53dc9e0 (patch)
tree168f6d9b63f5c2e787b324142e6cd268a2c80f7f /weed/s3api/s3api_handlers.go
parentff331178aac1ab733229dbea2ba5a47a354580ef (diff)
downloadseaweedfs-c133e72f623fc12b04fe3a34aa2a9d0da53dc9e0.tar.xz
seaweedfs-c133e72f623fc12b04fe3a34aa2a9d0da53dc9e0.zip
print out unsupported methods
Diffstat (limited to 'weed/s3api/s3api_handlers.go')
-rw-r--r--weed/s3api/s3api_handlers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go
index ab1fc7038..ca7d35d20 100644
--- a/weed/s3api/s3api_handlers.go
+++ b/weed/s3api/s3api_handlers.go
@@ -10,6 +10,7 @@ import (
"net/http"
"net/url"
"time"
+ "github.com/chrislusf/seaweedfs/weed/glog"
)
type mimeType string
@@ -49,6 +50,7 @@ func (s3a *S3ApiServer) withFilerClient(fn func(filer_pb.SeaweedFilerClient) err
// If none of the http routes match respond with MethodNotAllowed
func notFoundHandler(w http.ResponseWriter, r *http.Request) {
+ glog.V(0).Infof("unsupported %s %s", r.Method, r.RequestURI)
writeErrorResponse(w, ErrMethodNotAllowed, r.URL)
}