diff --git a/srcs/open_dhcp/query.cpp b/srcs/open_dhcp/query.cpp index 5f377c2..286ba4a 100644 --- a/srcs/open_dhcp/query.cpp +++ b/srcs/open_dhcp/query.cpp @@ -305,7 +305,7 @@ static void opendhcp_http_get_userinfo(http_request *request, hw_http_response * return; } - if (request->method != HW_HTTP_GET) { + if (request->method != HW_HTTP_POST) { hw_http_response_send_error(response, HTTP_STATUS_405, HTTP_STATUS_405); return; }