mirror of
https://github.com/curl/curl.git
synced 2026-06-03 15:54:21 +03:00
added comment about port number in CONNECT string being used as test number
This commit is contained in:
parent
15360e5e51
commit
d6c155ff47
1 changed files with 2 additions and 0 deletions
|
|
@ -340,6 +340,8 @@ int ProcessRequest(struct httprequest *req)
|
|||
/* if the host name starts with bad, we fake an error here */
|
||||
req->testno = DOCNUMBER_BADCONNECT;
|
||||
else if(!strncmp(doc, "test", 4)) {
|
||||
/* if the host name starts with test, the port number used in the
|
||||
CONNECT line will be used as test number! */
|
||||
char *ptr = strchr(doc, ':');
|
||||
if(ptr)
|
||||
req->testno = atoi(ptr+1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue