hopefully fix everything :)

This commit is contained in:
Henrique Dias
2016-12-08 16:00:23 +00:00
parent 9f84c546a2
commit 5cb0900c38
2 changed files with 16 additions and 17 deletions

View File

@@ -94,8 +94,6 @@ func (h Hugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
}
if canBeEdited(r.URL.Path) && r.Method == http.MethodPut {
r.URL.Path = strings.Replace(r.URL.Path, h.FileManager.Configs[0].BaseURL, h.FileManager.Configs[0].WebDavURL, -1)
code, err := h.FileManager.ServeHTTP(w, r)
if err != nil {