From 0102726aeb18258105d4f41c6196cdec62711dae Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 May 2003 22:36:39 +0000 Subject: [PATCH] Digest support added --- tests/server/sws.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/server/sws.c b/tests/server/sws.c index 4f9baba1b9..1223e01588 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -290,6 +290,13 @@ static int get_request(int sock, int *part) sprintf(logbuf, "Found test number %d in path", test_no); logmsg(logbuf); + + if(strstr(reqbuf, "Authorization: Digest")) { + /* If the client is passing this Digest-header, we set the part number + to 1000. Not only to spice up the complexity of this, but to make + Digest stuff to work in the test suite. */ + *part = 1000; + } } else { if(sscanf(reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d",