Project

General

Profile

Feature #1953 » lighttpd-git-supportedlock-property.patch

Properly reply to queries on the supportedlock property - mstorsjo, 2009-04-03 12:41

View differences:

src/mod_webdav.c
889 889
			buffer_append_string_len(b, CONST_STR_LEN("en"));
890 890
			buffer_append_string_len(b, CONST_STR_LEN("</D:getcontentlanguage>"));
891 891
			found = 1;
892
		} else if (0 == strcmp(prop_name, "supportedlock")) {
893
#ifdef USE_LOCKS
894
			buffer_append_string_len(b,CONST_STR_LEN("<D:supportedlock>"));
895
			buffer_append_string_len(b,CONST_STR_LEN("<D:lockentry>"));
896
			buffer_append_string_len(b,CONST_STR_LEN("<D:lockscope><D:exclusive/></D:lockscope>"));
897
			buffer_append_string_len(b,CONST_STR_LEN("<D:locktype><D:write/></D:locktype>"));
898
			buffer_append_string_len(b,CONST_STR_LEN("</D:lockentry>"));
899
			buffer_append_string_len(b,CONST_STR_LEN("<D:lockentry>"));
900
			buffer_append_string_len(b,CONST_STR_LEN("<D:lockscope><D:shared/></D:lockscope>"));
901
			buffer_append_string_len(b,CONST_STR_LEN("<D:locktype><D:write/></D:locktype>"));
902
			buffer_append_string_len(b,CONST_STR_LEN("</D:lockentry>"));
903
			buffer_append_string_len(b, CONST_STR_LEN("</D:supportedlock>"));
904
			found = 1;
905
#endif
892 906
		}
893 907
	}
894 908

  
(4-4/4)