Should also disallow PROPFIND as well

This commit is contained in:
Alex Skalozub 2014-06-29 00:03:52 +04:00
parent b0cf8304cb
commit a6bf2bcbf4

View File

@ -4266,10 +4266,10 @@ static void open_local_endpoint(struct connection *conn, int skip_user) {
close_local_endpoint(conn);
#endif
#ifndef MONGOOSE_NO_DAV
} else if (!strcmp(conn->mg_conn.request_method, "PROPFIND")) {
handle_propfind(conn, path, &st, exists);
} else if (must_hide_file(conn, path)) {
send_http_error(conn, 404, NULL);
} else if (!strcmp(conn->mg_conn.request_method, "PROPFIND")) {
handle_propfind(conn, path, &st, exists);
} else if (!strcmp(conn->mg_conn.request_method, "MKCOL")) {
handle_mkcol(conn, path);
} else if (!strcmp(conn->mg_conn.request_method, "DELETE")) {