mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-08 07:55:50 +00:00
Fix unknown method handling, lock on logging (#1224)
This commit is contained in:
@ -604,6 +604,7 @@ int HTTP_ProcessPacket(http_request_t* request) {
|
||||
ADDLOGF_ERROR("You gave request with NULL input");
|
||||
return 0;
|
||||
}
|
||||
request->method = -1;
|
||||
recvbuf = request->received;
|
||||
for (i = 0; i < sizeof(methodNames) / sizeof(*methodNames); i++) {
|
||||
if (http_startsWith(recvbuf, methodNames[i])) {
|
||||
|
||||
Reference in New Issue
Block a user