From b05d9987f1ac5893eabed37a2fd7f3e829cc8625 Mon Sep 17 00:00:00 2001 From: huangxin Date: Tue, 8 Nov 2022 11:08:43 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20=E6=9B=B4=E6=AD=A3HTTP=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/open_dhcp/query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }