move put to put

This commit is contained in:
Henrique Dias
2016-10-22 12:00:45 +01:00
parent ae33825182
commit df888b604a
3 changed files with 22 additions and 26 deletions

View File

@@ -83,8 +83,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
// Preprocess the PUT request if it's the case
if r.Method == http.MethodPut {
_, err = processPUT(w, r, c, user, fi)
if err != nil {
if handlers.PreProccessPUT(w, r, c, user, fi) != nil {
return http.StatusInternalServerError, err
}
}