mirror of
https://github.com/curl/curl.git
synced 2026-04-18 12:11:41 +03:00
improve request initialization for test harness HTTP server
This commit is contained in:
parent
2198869eb1
commit
69e540dfa6
1 changed files with 10 additions and 0 deletions
|
|
@ -1001,6 +1001,16 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
#endif
|
||||
|
||||
/* full initialization for new request after connection */
|
||||
memset(&req, 0, sizeof(req));
|
||||
req.testno = DOCNUMBER_NOTHING;
|
||||
req.open = TRUE;
|
||||
req.auth_req = FALSE;
|
||||
req.auth = FALSE;
|
||||
req.digest = FALSE;
|
||||
req.ntlm = FALSE;
|
||||
req.pipelining = FALSE;
|
||||
|
||||
do {
|
||||
if(get_request(msgsock, &req))
|
||||
/* non-zero means error, break out of loop */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue