src/server/webdav/multistatus.c

branch
webdav
changeset 238
e820d433f405
parent 237
ee1680ef1ef2
child 239
d5031c30022c
equal deleted inserted replaced
237:ee1680ef1ef2 238:e820d433f405
97 WebdavNSList *nsdef, 97 WebdavNSList *nsdef,
98 WSBool writeContent, 98 WSBool writeContent,
99 Writer *out) 99 Writer *out)
100 { 100 {
101 // write: "<prefix:name" 101 // write: "<prefix:name"
102 writer_puts(out, S(" <")); 102 writer_putc(out, '<');
103 writer_puts(out, sstr((char*)property->namespace->prefix)); 103 writer_puts(out, sstr((char*)property->namespace->prefix));
104 writer_putc(out, ':'); 104 writer_putc(out, ':');
105 writer_puts(out, sstr((char*)property->name)); 105 writer_puts(out, sstr((char*)property->name));
106 106
107 // check if the namespace is already defined 107 // check if the namespace is already defined
215 while(errprop) { 215 while(errprop) {
216 writer_puts(out, S(" ")); 216 writer_puts(out, S(" "));
217 if(send_property(ms, errprop->property, NULL, FALSE, out)) { 217 if(send_property(ms, errprop->property, NULL, FALSE, out)) {
218 return out->error; 218 return out->error;
219 } 219 }
220 writer_puts(out, S("\n ")); 220 writer_putc(out, '\n');
221 errprop = errprop->next; 221 errprop = errprop->next;
222 } 222 }
223 223
224 char statuscode[8]; 224 char statuscode[8];
225 int sclen = snprintf(statuscode, 8, "%d ", error->status); 225 int sclen = snprintf(statuscode, 8, "%d ", error->status);

mercurial