Bug #2000 ยป define-resourcetype.patch
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>"));
|