This commit is contained in:
Tester23
2024-05-11 11:16:05 +02:00
2 changed files with 5 additions and 0 deletions

View File

@@ -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])) {

View File

@@ -426,6 +426,10 @@ static int getData(char* buff, int buffsize, int* tail) {
if (!initialised)
return 0;
taken = xSemaphoreTake(logMemory.mutex, 100);
if (taken == 0)
{
return 0;
}
count = 0;
p = buff;