From 2e1ffa189b802893d5bbe2753539b6fbd93c9f22 Mon Sep 17 00:00:00 2001 From: "chris.lu@gmail.com" Date: Mon, 30 Jul 2012 07:28:06 +0000 Subject: [PATCH] The extension ext should begin with a leading dot, as in ".html" git-svn-id: https://weed-fs.googlecode.com/svn/trunk@58 282b0af5-e82d-9cf1-ede4-77906d7719d0 --- weed-fs/src/cmd/weedvolume/weedvolume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed-fs/src/cmd/weedvolume/weedvolume.go b/weed-fs/src/cmd/weedvolume/weedvolume.go index 9d609d8ae..9d07856b8 100644 --- a/weed-fs/src/cmd/weedvolume/weedvolume.go +++ b/weed-fs/src/cmd/weedvolume/weedvolume.go @@ -143,7 +143,7 @@ func parseURLPath(path string) (vid, fid, ext string) { ext = "" if dotIndex > 0 { fid = path[commaIndex+1 : dotIndex] - ext = path[dotIndex+1:] + ext = path[dotIndex:] } return }