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
This commit is contained in:
chris.lu@gmail.com 2012-07-30 07:28:06 +00:00
parent 2af8c354a7
commit 2e1ffa189b

View file

@ -143,7 +143,7 @@ func parseURLPath(path string) (vid, fid, ext string) {
ext = "" ext = ""
if dotIndex > 0 { if dotIndex > 0 {
fid = path[commaIndex+1 : dotIndex] fid = path[commaIndex+1 : dotIndex]
ext = path[dotIndex+1:] ext = path[dotIndex:]
} }
return return
} }