src/server/webdav/webdav.c

branch
webdav
changeset 328
1c08aa0c060e
parent 327
24e740ed90b3
child 329
d2b2124801f4
equal deleted inserted replaced
327:24e740ed90b3 328:1c08aa0c060e
657 ret = webdav_vfs_op_do(op, WEBDAV_VFS_DELETE); 657 ret = webdav_vfs_op_do(op, WEBDAV_VFS_DELETE);
658 } 658 }
659 659
660 // send response 660 // send response
661 if(ret == REQ_PROCEED) { 661 if(ret == REQ_PROCEED) {
662 protocol_status(op->sn, op->rq, 204, NULL); 662 protocol_status(sn, rq, 204, NULL);
663 protocol_start_response(op->sn, op->rq); 663 protocol_start_response(sn, rq);
664 } else { 664 } else {
665 protocol_status(op->sn, op->rq, 204, NULL); 665 protocol_status(sn, rq, 204, NULL);
666 } 666 }
667 667
668 return ret; 668 return ret;
669 } 669 }
670 670
722 722
723 system_fclose(fd); 723 system_fclose(fd);
724 724
725 int status = create_file ? PROTOCOL_CREATED : PROTOCOL_NO_CONTENT; 725 int status = create_file ? PROTOCOL_CREATED : PROTOCOL_NO_CONTENT;
726 protocol_status(sn, rq, status, NULL); 726 protocol_status(sn, rq, status, NULL);
727 protocol_start_response(sn, rq);
727 728
728 return REQ_PROCEED; 729 return REQ_PROCEED;
729 } 730 }
730 731
731 int webdav_copy(pblock *pb, Session *sn, Request *rq) { 732 int webdav_copy(pblock *pb, Session *sn, Request *rq) {

mercurial