diff options
Diffstat (limited to 'weed/s3api')
| -rw-r--r-- | weed/s3api/s3api_handlers.go | 4 | ||||
| -rw-r--r-- | weed/s3api/s3api_server.go | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go index cd365d87b..4e1dd09a7 100644 --- a/weed/s3api/s3api_handlers.go +++ b/weed/s3api/s3api_handlers.go @@ -26,6 +26,10 @@ func (s3a *S3ApiServer) AdjustedUrl(location *filer_pb.Location) string { return location.Url } +func (s3a *S3ApiServer) GetDataCenter() string { + return s3a.option.DataCenter +} + func writeSuccessResponseXML(w http.ResponseWriter, r *http.Request, response interface{}) { s3err.WriteXMLResponse(w, r, http.StatusOK, response) s3err.PostLog(r, http.StatusOK, s3err.ErrNone) diff --git a/weed/s3api/s3api_server.go b/weed/s3api/s3api_server.go index 1098966e7..0fc6af4f6 100644 --- a/weed/s3api/s3api_server.go +++ b/weed/s3api/s3api_server.go @@ -29,6 +29,7 @@ type S3ApiServerOption struct { AllowEmptyFolder bool AllowDeleteBucketNotEmpty bool LocalFilerSocket *string + DataCenter string } type S3ApiServer struct { |
