src/server/webdav/multistatus.c

branch
webdav
changeset 376
61d481d3c2e4
parent 349
7bf652914e9b
child 381
7d55d60e1fe2
equal deleted inserted replaced
375:32b8017f5308 376:61d481d3c2e4
202 } 202 }
203 case WS_VALUE_XML_DATA: { 203 case WS_VALUE_XML_DATA: {
204 // only write data, data->namespaces is already handled 204 // only write data, data->namespaces is already handled
205 writer_put( 205 writer_put(
206 out, 206 out,
207 property->value.data->data, 207 property->value.data.data,
208 property->value.data->length); 208 property->value.data.length);
209 break; 209 break;
210 } 210 }
211 case WS_VALUE_TEXT: { 211 case WS_VALUE_TEXT: {
212 // asume the text is already escaped 212 // asume the text is already escaped
213 writer_put( 213 writer_put(
338 response = response->next; 338 response = response->next;
339 } 339 }
340 340
341 // end multistatus 341 // end multistatus
342 writer_puts(out, S("</D:multistatus>\n")); 342 writer_puts(out, S("</D:multistatus>\n"));
343
344 //printf("\n\n%.*s\n\n", (int)writer.pos, writer.buffer);
345 //fflush(stdout);
343 346
344 writer_flush(out); 347 writer_flush(out);
345 348
346 return 0; 349 return 0;
347 } 350 }
522 if(err) { 525 if(err) {
523 return 1; // OOM 526 return 1; // OOM
524 } 527 }
525 } else if(property->vtype == WS_VALUE_XML_DATA) { 528 } else if(property->vtype == WS_VALUE_XML_DATA) {
526 // xml data contains a list of all used namespaces 529 // xml data contains a list of all used namespaces
527 nslist = property->value.data->namespaces; 530 nslist = property->value.data.namespaces;
528 } // other value types don't contain xml namespaces 531 } // other value types don't contain xml namespaces
529 532
530 while(nslist) { 533 while(nslist) {
531 // only add the namespace to the definitions list, if it isn't a 534 // only add the namespace to the definitions list, if it isn't a
532 // property namespace, because the prop ns is already added 535 // property namespace, because the prop ns is already added

mercurial