Explorar o código

Fixed write page bug in dirserv

Toby Chui %!s(int64=2) %!d(string=hai) anos
pai
achega
bc415b1fe2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      mod/fileservers/servers/dirserv/dirserv.go

+ 2 - 0
mod/fileservers/servers/dirserv/dirserv.go

@@ -114,6 +114,8 @@ func (m *Manager) ServerWebFileRequest(w http.ResponseWriter, r *http.Request) {
 		for _, fsh := range fshs {
 			html += getItemHTML(fsh.Name, arozfs.ToSlash(filepath.Join(r.RequestURI, fsh.UUID)), true, "-", "-")
 		}
+		html += getPageFooter()
+		w.Write([]byte(html))
 
 	} else {
 		//Show path inside fsh