From 69e540dfa6487701639b4b9a2d3bbd2ee6343dc2 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 25 Jan 2008 05:08:53 +0000 Subject: improve request initialization for test harness HTTP server --- tests/server/sws.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/server/sws.c b/tests/server/sws.c index f7a3f846a..816532bd5 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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 */ -- cgit v1.2.3