From: Daniel Stenberg Date: Thu, 22 May 2003 22:36:39 +0000 (+0000) Subject: Digest support added X-Git-Tag: curl-7_10_6~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0102726aeb18258105d4f41c6196cdec62711dae;p=curl Digest support added --- diff --git a/tests/server/sws.c b/tests/server/sws.c index 4f9baba1b..1223e0158 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",