mirror of
https://github.com/curl/curl.git
synced 2026-06-03 22:24:19 +03:00
when the client disconnects prematurely, dump the request as received thus
far
This commit is contained in:
parent
f8188ddfee
commit
67341c4cbe
1 changed files with 4 additions and 0 deletions
|
|
@ -482,6 +482,10 @@ static int get_request(int sock, struct httprequest *req)
|
|||
return DOCNUMBER_INTERNAL;
|
||||
}
|
||||
logmsg("Connection closed by client");
|
||||
reqbuf[req->offset]=0;
|
||||
|
||||
/* dump the request receivied so far to the external file */
|
||||
storerequest(reqbuf);
|
||||
return DOCNUMBER_INTERNAL;
|
||||
}
|
||||
req->offset += got;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue