src/server/webdav/webdav.c

branch
webdav
changeset 373
f78a585e1a2f
parent 366
47bc686fafe4
child 376
61d481d3c2e4
equal deleted inserted replaced
372:1d2538a1ba8f 373:f78a585e1a2f
883 { 883 {
884 return 0; 884 return 0;
885 } 885 }
886 886
887 887
888
889 /* ------------------------------ Utils ------------------------------ */
890
891 UcxKey webdav_property_key(const char *ns, const char *name) {
892 UcxKey key;
893 sstr_t data = ucx_sprintf("%s\n%s", name, ns);
894 key.data = data.ptr;
895 key.len = data.length;
896 key.hash = ucx_hash(data.ptr, data.length);
897 return key;
898 }
899
900
901
902
888 /* ------------------------------ public API ------------------------------ */ 903 /* ------------------------------ public API ------------------------------ */
889 904
890 int webdav_getdepth(Request *rq) { 905 int webdav_getdepth(Request *rq) {
891 char *depth_str = pblock_findkeyval(pb_key_depth, rq->headers); 906 char *depth_str = pblock_findkeyval(pb_key_depth, rq->headers);
892 int depth = 0; 907 int depth = 0;

mercurial