diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-12-11 06:54:36 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-12-11 06:54:36 +0000 |
commit | 2b8907e7e2f1034c034d222752179d1e86522e0b (patch) | |
tree | c688d6e8a5f77a1c968a986c255cf7882b8f2702 /usr.bin | |
parent | d0493c85a6f2ff45e82c5df0e09a75dc330069fb (diff) | |
download | src-2b8907e7e2f1034c034d222752179d1e86522e0b.tar.gz src-2b8907e7e2f1034c034d222752179d1e86522e0b.zip |
Apply the same defaults to https as to http.
Submitted by: Mike Tancsa <mike@sentex.net>
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=185912
Diffstat (limited to 'usr.bin')
-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 3dc276aaf719..a891a8ca1afb 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) |