mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-10 16:15:42 +00:00
MAX_HEADERS use macro instead of number
This commit is contained in:
@ -575,7 +575,7 @@ int HTTP_ProcessPacket(http_request_t* request) {
|
||||
p = strchr(headers, '\r');
|
||||
if (p != headers) {
|
||||
if (p) {
|
||||
if (request->numheaders < 16) {
|
||||
if (request->numheaders < MAX_HEADERS) {
|
||||
request->headers[request->numheaders] = headers;
|
||||
request->numheaders++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user