refactoring

This commit is contained in:
Chris Lu
2020-03-23 00:06:24 -07:00
parent c0f0fdb3ba
commit 654a69ff52
3 changed files with 33 additions and 23 deletions

View File

@@ -46,6 +46,10 @@ func (s3a *S3ApiServer) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) err
}, s3a.option.FilerGrpcAddress, s3a.option.GrpcDialOption)
}
func (s3a *S3ApiServer) AdjustedUrl(hostAndPort string) string {
return hostAndPort
}
// If none of the http routes match respond with MethodNotAllowed
func notFoundHandler(w http.ResponseWriter, r *http.Request) {