Author: des
Date: Tue Nov 27 10:06:41 2018
New Revision: 341011
URL: https://svnweb.freebsd.org/changeset/base/341011
Log:
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
Modified:
head/lib/libfetch/ftp.c
Modified: head/lib/libfetch/ftp.c
==============================================================================
--- head/lib/libfetch/ftp.c Tue Nov 27 09:46:01 2018 (r341010)
+++ head/lib/libfetch/ftp.c Tue Nov 27 10:06:41 2018 (r341011)
@@ -1104,7 +1104,8 @@ ftp_request(struct url *url, const char *op, struct ur
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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"