68 "<D:multistatus"); |
68 "<D:multistatus"); |
69 |
69 |
70 // write the namespaces definitions |
70 // write the namespaces definitions |
71 // key is the namespace prefix |
71 // key is the namespace prefix |
72 // the map always contains the "DAV:" namespace with the prefix "D" |
72 // the map always contains the "DAV:" namespace with the prefix "D" |
73 CxIterator i = cxMapIterator(ms->namespaces); |
73 CxMapIterator i = cxMapIterator(ms->namespaces); |
74 cx_foreach(CxMapEntry*, entry, i) { |
74 cx_foreach(CxMapEntry*, entry, i) { |
75 WSNamespace *ns = entry->value; |
75 WSNamespace *ns = entry->value; |
76 writer_put_lit(out, " xmlns:"); |
76 writer_put_lit(out, " xmlns:"); |
77 writer_put (out, entry->key->data, entry->key->len); |
77 writer_put (out, entry->key->data, entry->key->len); |
78 writer_put_lit(out, "=\""); |
78 writer_put_lit(out, "=\""); |
715 response->plist_begin = NULL; |
715 response->plist_begin = NULL; |
716 response->plist_end = NULL; |
716 response->plist_end = NULL; |
717 } |
717 } |
718 |
718 |
719 // we don't need the properties anymore |
719 // we don't need the properties anymore |
720 cxMapDestroy(response->properties); |
720 cxMapFree(response->properties); |
721 |
721 |
722 response->resource.isclosed = TRUE; |
722 response->resource.isclosed = TRUE; |
723 return ret; |
723 return ret; |
724 } |
724 } |