]> granicus.if.org Git - curl/commitdiff
Digest support added
authorDaniel Stenberg <daniel@haxx.se>
Thu, 22 May 2003 22:36:39 +0000 (22:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 May 2003 22:36:39 +0000 (22:36 +0000)
tests/server/sws.c

index 4f9baba1b9fdc4fd06a2aa486f9935accd16331a..1223e015883c36fb1c57f67415b9d57690fd27bf 100644 (file)
@@ -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",