svn commit: r185912 - head/usr.bin/fetch
Dag-Erling Smorgrav
des at FreeBSD.org
Wed Dec 10 22:54:37 PST 2008
Author: des
Date: Thu Dec 11 06:54:36 2008
New Revision: 185912
URL: http://svn.freebsd.org/changeset/base/185912
Log:
Apply the same defaults to https as to http.
Submitted by: Mike Tancsa <mike at sentex.net>
MFC after: 1 week
Modified:
head/usr.bin/fetch/fetch.c
Modified: head/usr.bin/fetch/fetch.c
==============================================================================
--- head/usr.bin/fetch/fetch.c Thu Dec 11 06:53:53 2008 (r185911)
+++ head/usr.bin/fetch/fetch.c Thu Dec 11 06:54:36 2008 (r185912)
@@ -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)
More information about the svn-src-all
mailing list