aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-01-02 02:38:32 -0800
committerChris Lu <chris.lu@gmail.com>2019-01-02 02:38:32 -0800
commit43db7ac123e312cb2f55a005684f603a900cb310 (patch)
tree9082de6f80af54a7b9836d68a7b4fd6ac82d4fb5
parent9539823c35d7c0f2ee3cc3dc0ff906c265e08afb (diff)
downloadseaweedfs-43db7ac123e312cb2f55a005684f603a900cb310.tar.xz
seaweedfs-43db7ac123e312cb2f55a005684f603a900cb310.zip
fix spelling
-rw-r--r--weed/s3api/s3api_object_handlers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go
index d9cb0c072..44e93d297 100644
--- a/weed/s3api/s3api_object_handlers.go
+++ b/weed/s3api/s3api_object_handlers.go
@@ -73,7 +73,7 @@ func (s3a *S3ApiServer) GetObjectHandler(w http.ResponseWriter, r *http.Request)
destUrl := fmt.Sprintf("http://%s%s/%s%s",
s3a.option.Filer, s3a.option.BucketsPath, bucket, object)
- s3a.proxyToFiler(w, r, destUrl, passThroghResponse)
+ s3a.proxyToFiler(w, r, destUrl, passThroughResponse)
}
@@ -86,7 +86,7 @@ func (s3a *S3ApiServer) HeadObjectHandler(w http.ResponseWriter, r *http.Request
destUrl := fmt.Sprintf("http://%s%s/%s%s",
s3a.option.Filer, s3a.option.BucketsPath, bucket, object)
- s3a.proxyToFiler(w, r, destUrl, passThroghResponse)
+ s3a.proxyToFiler(w, r, destUrl, passThroughResponse)
}
@@ -147,7 +147,7 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des
responseFn(resp, w)
}
-func passThroghResponse(proxyResonse *http.Response, w http.ResponseWriter) {
+func passThroughResponse(proxyResonse *http.Response, w http.ResponseWriter) {
for k, v := range proxyResonse.Header {
w.Header()[k] = v
}