Skip to content

Commit 25f1014

Browse files
bitfehleremersion
authored andcommitted
internal: no status element in propstat responses
Responses that contain propstat elements do not contain their own top-level status element, only the status elements inside the propstat element. See https://datatracker.ietf.org/doc/html/rfc4918#section-14.24 or any of the examples for PROPFIND/PROPPATCH, starting e.g. here: https://datatracker.ietf.org/doc/html/rfc4918#section-9.1.3
1 parent ad1fe1c commit 25f1014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) error {
173173
type PropFindFunc func(raw *RawXMLValue) (interface{}, error)
174174

175175
func NewPropFindResponse(path string, propfind *PropFind, props map[xml.Name]PropFindFunc) (*Response, error) {
176-
resp := NewOKResponse(path)
176+
resp := &Response{Hrefs: []Href{Href{Path: path}}}
177177

178178
if _, ok := props[ResourceTypeName]; !ok {
179179
props[ResourceTypeName] = func(*RawXMLValue) (interface{}, error) {

0 commit comments

Comments
 (0)