aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2022-01-24 08:07:18 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2022-01-24 08:07:18 +0000
commit08a2504a207c9302939bc0d1173fe44875e2a2e4 (patch)
tree3a5a1d0ecc696426e8c93ce34550c5151db80866 /usr.bin/fetch
parentbf599c03f09dea0f7e188e002b42d782af6841c3 (diff)
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 55209538e49b..65ba091e3334 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -476,7 +476,7 @@ fetch(char *URL, const char *path, int *is_http)
}
/* for both of http and https */
- *is_http = strncmp(url->scheme, SCHEME_HTTP, sizeof(SCHEME_HTTP)) == 0;
+ *is_http = strncmp(url->scheme, "http", 4) == 0;
/* common flags */
switch (family) {