Support proxying FTP over HTTPS, not just HTTP.
There is probably a PR for this, but I can't find this, or remember who submitted it. The patch got lost in the noise of another that wasn't ready to commit. MFC after: 3 days
This commit is contained in:
parent
6b93819730
commit
b68815f088
@ -1104,7 +1104,8 @@ ftp_request(struct url *url, const char *op, struct url_stat *us,
|
||||
int oflag;
|
||||
|
||||
/* check if we should use HTTP instead */
|
||||
if (purl && strcasecmp(purl->scheme, SCHEME_HTTP) == 0) {
|
||||
if (purl && (strcasecmp(purl->scheme, SCHEME_HTTP) == 0 ||
|
||||
strcasecmp(purl->scheme, SCHEME_HTTPS) == 0)) {
|
||||
if (strcmp(op, "STAT") == 0)
|
||||
return (http_request(url, "HEAD", us, purl, flags));
|
||||
else if (strcmp(op, "RETR") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user