Commit 290a9d18 authored by knightmare shava's avatar knightmare shava

minor fix,if path does not include :

parent 73a2081a
......@@ -185,7 +185,7 @@ func ParseConfig() (err error) {
}
sds := strings.Fields(sd)
for _, v := range sds {
if url2fsmap := strings.SplitN(v, ":", 2); url2fsmap[1] != "" {
if url2fsmap := strings.SplitN(v, ":", 2); len(url2fsmap) == 2 {
StaticDir["/"+url2fsmap[0]] = url2fsmap[1]
} else {
StaticDir["/"+url2fsmap[0]] = url2fsmap[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment