Update test001.c

This commit is contained in:
Dung-Yi
2022-02-16 21:41:58 -05:00
committed by GitHub
parent fef7db4b6c
commit 23b50c0b25

View File

@ -634,7 +634,7 @@ int read_request(client_t *client){
//DEBUG_CLIENT(client, "received request header");
offs = 0;
//offs = 0;
while (running && (line_end = strstr(buf + offs, "\r\n"))) {
if (offs == 0) { /* first request line */
found = sscanf(buf, "%9s %1023s %9s", client->method, client->uri, client->http_ver);