mirror of
https://github.com/shlldev/miniws.git
synced 2025-09-03 11:20:59 +02:00
fix path autoadd /index.html
This commit is contained in:
@@ -153,7 +153,7 @@ func (ws *WebServer) _cleanFilepath(filepath string) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if fileinfo.IsDir() {
|
if fileinfo.IsDir() {
|
||||||
filepath += "/index.html"
|
filepath += "index.html"
|
||||||
}
|
}
|
||||||
return filepath
|
return filepath
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user