diff options
-rw-r--r-- | tests/server/sws.c | 7 |
1 files changed, 7 insertions, 0 deletions
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", |