1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

when the client disconnects prematurely, dump the request as received thus

far
This commit is contained in:
Daniel Stenberg 2004-06-21 14:00:11 +00:00
parent f8188ddfee
commit 67341c4cbe

View File

@ -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;