Commit a6bf2bcb authored by Alex Skalozub's avatar Alex Skalozub

Should also disallow PROPFIND as well

parent b0cf8304
...@@ -4266,10 +4266,10 @@ static void open_local_endpoint(struct connection *conn, int skip_user) { ...@@ -4266,10 +4266,10 @@ static void open_local_endpoint(struct connection *conn, int skip_user) {
close_local_endpoint(conn); close_local_endpoint(conn);
#endif #endif
#ifndef MONGOOSE_NO_DAV #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)) { } else if (must_hide_file(conn, path)) {
send_http_error(conn, 404, NULL); 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")) { } else if (!strcmp(conn->mg_conn.request_method, "MKCOL")) {
handle_mkcol(conn, path); handle_mkcol(conn, path);
} else if (!strcmp(conn->mg_conn.request_method, "DELETE")) { } else if (!strcmp(conn->mg_conn.request_method, "DELETE")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment