mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix spelling
This commit is contained in:
parent
9539823c35
commit
43db7ac123
|
@ -73,7 +73,7 @@ func (s3a *S3ApiServer) GetObjectHandler(w http.ResponseWriter, r *http.Request)
|
||||||
destUrl := fmt.Sprintf("http://%s%s/%s%s",
|
destUrl := fmt.Sprintf("http://%s%s/%s%s",
|
||||||
s3a.option.Filer, s3a.option.BucketsPath, bucket, object)
|
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",
|
destUrl := fmt.Sprintf("http://%s%s/%s%s",
|
||||||
s3a.option.Filer, s3a.option.BucketsPath, bucket, object)
|
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)
|
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 {
|
for k, v := range proxyResonse.Header {
|
||||||
w.Header()[k] = v
|
w.Header()[k] = v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue