Feat: resume upload in server side

This commit is contained in:
HFO4
2020-01-21 15:36:04 +08:00
parent 06ff8b5a50
commit 752ce5ce62
8 changed files with 178 additions and 22 deletions

View File

@@ -280,7 +280,7 @@ loop:
// The file doesn't implement the optional DeadPropsHolder interface, so
// all patches are forbidden.
pstat := Propstat{Status: http.StatusForbidden}
pstat := Propstat{Status: http.StatusOK}
for _, patch := range patches {
for _, p := range patch.Props {
pstat.Props = append(pstat.Props, Property{XMLName: p.XMLName})