Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
No need to check the scheme to chose the right method, libfetch does it already
Baptiste Daroussin committed 13 years ago
commit 58f02faa772e7053b600a08250645c08c030c293
parent 5527865405de252ac7ab8c643e06c217909ccc7c
1 file changed +1 -4
modified libpkg/fetch.c
@@ -182,10 +182,7 @@ pkg_fetch_file_to_fd(const char *url, int dest, time_t t)
			u->port = http_current->url->port;
		}

-
		if (strncmp(u->scheme, "http", 4) == 0)
-
			remote = fetchXGetHTTP(u, &st, "i");
-
		else
-
			remote = fetchXGet(u, &st, "");
+
		remote = fetchXGet(u, &st, "i");
		if (remote == NULL) {
			if (fetchLastErrCode == FETCH_OK) {
				retcode = EPKG_UPTODATE;