aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-22 22:36:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-22 22:36:39 +0000
commit0102726aeb18258105d4f41c6196cdec62711dae (patch)
treefb032f42912706dffb34d47fad710194c5172064 /tests
parent1e7aa0404038cea37dc5784cf073ae967bb24143 (diff)
Digest support added
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sws.c7
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",