OCT 更正HTTP接口方法错误

This commit is contained in:
huangxin 2022-11-08 11:08:43 +08:00
parent 7f6a59f562
commit b05d9987f1
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ static void opendhcp_http_get_userinfo(http_request *request, hw_http_response *
return; 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); hw_http_response_send_error(response, HTTP_STATUS_405, HTTP_STATUS_405);
return; return;
} }