aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/sws.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index e420be855..689ef1d64 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -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;