added support for /vid/keycookie/filename.txt format for HTTP GET

This commit is contained in:
Chris Lu
2013-07-12 14:19:11 -07:00
parent 4c280bc317
commit 49cc81fdab
2 changed files with 31 additions and 26 deletions

View File

@@ -176,7 +176,7 @@ func volumeStatusHandler(w http.ResponseWriter, r *http.Request) {
}
func redirectHandler(w http.ResponseWriter, r *http.Request) {
vid, _, _ := parseURLPath(r.URL.Path)
vid, _, _, _ := parseURLPath(r.URL.Path)
volumeId, err := storage.NewVolumeId(vid)
if err != nil {
debug("parsing error:", err, r.URL.Path)