mirror of
https://github.com/shlldev/miniws.git
synced 2025-09-02 19:00: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 ""
|
||||
}
|
||||
if fileinfo.IsDir() {
|
||||
filepath += "/index.html"
|
||||
filepath += "index.html"
|
||||
}
|
||||
return filepath
|
||||
}
|
||||
|
Reference in New Issue
Block a user