kick off the dav things

This commit is contained in:
zicla
2019-04-12 18:01:35 +08:00
parent 73076c3a54
commit 8edb7833a8
4 changed files with 42 additions and 13 deletions

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package webdav provides a WebDAV server implementation.
package dav // import "golang.org/x/net/webdav"
package dav
import (
"errors"
@ -70,6 +70,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
// status = 0 表示没有问题
if status != 0 {
w.WriteHeader(status)
if status != http.StatusNoContent {