aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server')
-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 3f11b3b0c..5e3f3abc5 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -442,6 +442,13 @@ static int ProcessRequest(struct httprequest *req)
req->ntlm = TRUE; /* NTLM found */
logmsg("Received NTLM type-1, sending back data %ld", req->partno);
}
+ else if((req->partno >= 1000) && strstr(req->reqbuf, "Authorization: Basic")) {
+ /* If the client is passing this Basic-header and the part number is already
+ >=1000, we add 1 to the part number. This allows simple Basic authentication
+ negotiation to work in the test suite. */
+ req->partno += 1;
+ logmsg("Received Basic request, sending back data %ld", req->partno);
+ }
if(strstr(req->reqbuf, "Connection: close"))
req->open = FALSE; /* close connection after this request */