Project

General

Profile

Bug #2000 ยป define-resourcetype.patch

patch against trunk - treitmayr, 2009-06-08 18:59

View differences:

lighttpd/src/mod_webdav.c (Arbeitskopie)
if (0 == strcmp(prop_name, "resourcetype")) {
if (S_ISDIR(sce->st.st_mode)) {
buffer_append_string_len(b, CONST_STR_LEN("<D:resourcetype><D:collection/></D:resourcetype>"));
found = 1;
} else {
buffer_append_string_len(b, CONST_STR_LEN("<D:resourcetype/>"));
}
found = 1;
} else if (0 == strcmp(prop_name, "getcontenttype")) {
if (S_ISDIR(sce->st.st_mode)) {
buffer_append_string_len(b, CONST_STR_LEN("<D:getcontenttype>httpd/unix-directory</D:getcontenttype>"));
    (1-1/1)