From b778ae4c5e5bcb6da4de789e25971f40f0673d86 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 19 Jun 2017 14:10:33 +0200 Subject: http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASH ... to enable sending "OPTIONS *" which wasn't possible previously. This option currently only works for HTTP. Added test cases 1298 + 1299 to verify Fixes #1280 Closes #1462 --- tests/server/sws.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/server') diff --git a/tests/server/sws.c b/tests/server/sws.c index b1199ccc6..bff30f212 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -601,6 +601,14 @@ static int ProcessRequest(struct httprequest *req) } } + if(req->testno == DOCNUMBER_NOTHING) { + /* check for a Testno: header with the test case number */ + char *testno = strstr(line, "\nTestno: "); + if(testno) { + req->testno = strtol(&testno[9], NULL, 10); + logmsg("Found test number %d in Testno: header!", req->testno); + } + } if(req->testno == DOCNUMBER_NOTHING) { /* Still no test case number. Try to get the the number off the last dot instead, IE we consider the TLD to be the test number. Test 123 can -- cgit v1.2.3