small fixes and dependency updates
This commit is contained in:
parent
e95910d920
commit
96405e2521
238 changed files with 3599 additions and 3467 deletions
2
vendor/golang.org/x/net/webdav/if.go
generated
vendored
2
vendor/golang.org/x/net/webdav/if.go
generated
vendored
|
|
@ -24,7 +24,7 @@ type ifList struct {
|
|||
|
||||
// parseIfHeader parses the "If: foo bar" HTTP header. The httpHeader string
|
||||
// should omit the "If:" prefix and have any "\r\n"s collapsed to a " ", as is
|
||||
// returned by req.Header.Get("If") for a http.Request req.
|
||||
// returned by req.Header.Get("If") for an http.Request req.
|
||||
func parseIfHeader(httpHeader string) (h ifHeader, ok bool) {
|
||||
s := strings.TrimSpace(httpHeader)
|
||||
switch tokenType, _, _ := lex(s); tokenType {
|
||||
|
|
|
|||
2
vendor/golang.org/x/net/webdav/webdav.go
generated
vendored
2
vendor/golang.org/x/net/webdav/webdav.go
generated
vendored
|
|
@ -655,7 +655,7 @@ func handlePropfindError(err error, info os.FileInfo) error {
|
|||
// We need to be careful with other errors: there is no way to abort the xml stream
|
||||
// part way through while returning a valid PROPFIND response. Returning only half
|
||||
// the data would be misleading, but so would be returning results tainted by errors.
|
||||
// The curent behaviour by returning an error here leads to the stream being aborted,
|
||||
// The current behaviour by returning an error here leads to the stream being aborted,
|
||||
// and the parent http server complaining about writing a spurious header. We should
|
||||
// consider further enhancing this error handling to more gracefully fail, or perhaps
|
||||
// buffer the entire response until we've walked the tree.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue