mirror of
https://github.com/curl/curl.git
synced 2026-07-26 14:17:50 +03:00
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
This commit is contained in:
parent
176ec51382
commit
b778ae4c5e
21 changed files with 220 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue