1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 06:25:03 -05:00

server: remove redundant condition

`end` is always non-null here.

Closes https://github.com/curl/curl/pull/6576
This commit is contained in:
Marcel Raad 2021-02-07 11:45:16 +01:00
parent 1cd823ed5a
commit 1636076e70
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02
2 changed files with 0 additions and 2 deletions

View File

@ -552,7 +552,6 @@ static int ProcessRequest(struct httprequest *req)
if(!req->pipe &&
req->open &&
req->prot_version >= 11 &&
end &&
req->reqbuf + req->offset > end + strlen(END_OF_HEADERS) &&
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||
!strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) {

View File

@ -748,7 +748,6 @@ static int ProcessRequest(struct httprequest *req)
if(req->open &&
req->prot_version >= 11 &&
end &&
req->reqbuf + req->offset > end + strlen(end_of_headers) &&
!req->cl &&
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||