Преглед на файлове

Allowing HEAD method for CGI requests

Sergey Lyubka преди 12 години
родител
ревизия
8d6634ff7e
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      mongoose.c

+ 1 - 0
mongoose.c

@@ -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);