mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
Allowing HEAD method for CGI requests
This commit is contained in:
parent
6c9ed3ca53
commit
8d6634ff7e
@ -4243,6 +4243,7 @@ static void handle_request(struct mg_connection *conn) {
|
||||
strlen(conn->ctx->config[CGI_EXTENSIONS]),
|
||||
path) > 0) {
|
||||
if (strcmp(ri->request_method, "POST") &&
|
||||
strcmp(ri->request_method, "HEAD") &&
|
||||
strcmp(ri->request_method, "GET")) {
|
||||
send_http_error(conn, 501, "Not Implemented",
|
||||
"Method %s is not implemented", ri->request_method);
|
||||
|
Loading…
x
Reference in New Issue
Block a user