mirror of
https://github.com/Dungyichao/http_server.git
synced 2025-07-24 11:59:52 +00:00
Update test001.c
This commit is contained in:
@ -634,7 +634,7 @@ int read_request(client_t *client){
|
|||||||
|
|
||||||
//DEBUG_CLIENT(client, "received request header");
|
//DEBUG_CLIENT(client, "received request header");
|
||||||
|
|
||||||
offs = 0;
|
//offs = 0;
|
||||||
while (running && (line_end = strstr(buf + offs, "\r\n"))) {
|
while (running && (line_end = strstr(buf + offs, "\r\n"))) {
|
||||||
if (offs == 0) { /* first request line */
|
if (offs == 0) { /* first request line */
|
||||||
found = sscanf(buf, "%9s %1023s %9s", client->method, client->uri, client->http_ver);
|
found = sscanf(buf, "%9s %1023s %9s", client->method, client->uri, client->http_ver);
|
||||||
|
Reference in New Issue
Block a user