fix volume_layout bug, add new feature for volume etag write,filer pass through query params'

This commit is contained in:
霍晓栋
2016-06-29 16:05:00 +08:00
parent b617b13c43
commit 079fdbad13
3 changed files with 11 additions and 2 deletions

View File

@@ -70,6 +70,13 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
return
}
u, _ := url.Parse(urlString)
q := u.Query()
for key, values := range r.URL.Query() {
for _, value := range values {
q.Add(key, value)
}
}
u.RawQuery = q.Encode()
request := &http.Request{
Method: r.Method,
URL: u,