diff options
author | des <des@FreeBSD.org> | 2008-12-11 06:54:36 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-12-11 06:54:36 +0000 |
commit | a5ecf5f20c098708b70d2b0efb404966cdee1ee2 (patch) | |
tree | c688d6e8a5f77a1c968a986c255cf7882b8f2702 | |
parent | e6342fe8be30cb35eeaf40fa8ddb01e1afa2b8f6 (diff) | |
download | FreeBSD-src-a5ecf5f20c098708b70d2b0efb404966cdee1ee2.zip FreeBSD-src-a5ecf5f20c098708b70d2b0efb404966cdee1ee2.tar.gz |
Apply the same defaults to https as to http.
Submitted by: Mike Tancsa <mike@sentex.net>
MFC after: 1 week
-rw-r--r-- | usr.bin/fetch/fetch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index 3dc276a..a891a8c 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -375,7 +375,8 @@ fetch(char *URL, const char *path) } /* HTTP specific flags */ - if (strcmp(url->scheme, SCHEME_HTTP) == 0) { + if (strcmp(url->scheme, SCHEME_HTTP) == 0 || + strcmp(url->scheme, SCHEME_HTTPS) == 0) { if (d_flag) strcat(flags, "d"); if (A_flag) |