mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 00:30:48 +00:00
minor fix,if path does not include :
This commit is contained in:
parent
73a2081ae7
commit
290a9d184d
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user