Bug #2000 ยป define-resourcetype.patch
lighttpd/src/mod_webdav.c (Arbeitskopie) | ||
---|---|---|
911 | 911 |
if (0 == strcmp(prop_name, "resourcetype")) { |
912 | 912 |
if (S_ISDIR(sce->st.st_mode)) { |
913 | 913 |
buffer_append_string_len(b, CONST_STR_LEN("<D:resourcetype><D:collection/></D:resourcetype>")); |
914 |
found = 1; |
|
914 |
} else { |
|
915 |
buffer_append_string_len(b, CONST_STR_LEN("<D:resourcetype/>")); |
|
915 | 916 |
} |
917 |
found = 1; |
|
916 | 918 |
} else if (0 == strcmp(prop_name, "getcontenttype")) { |
917 | 919 |
if (S_ISDIR(sce->st.st_mode)) { |
918 | 920 |
buffer_append_string_len(b, CONST_STR_LEN("<D:getcontenttype>httpd/unix-directory</D:getcontenttype>")); |