summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-07-25 11:45:38 +0000
committerdes <des@FreeBSD.org>2000-07-25 11:45:38 +0000
commit2de7b8d72b9f8324bd4e07219ca1dc1689ba4614 (patch)
tree11d2f391d90ea74c6b5e72fd1d769d97edc3e6ee /lib/libfetch/common.h
parent64de57e4e28f41b53af571e2f918c940e2286097 (diff)
downloadFreeBSD-src-2de7b8d72b9f8324bd4e07219ca1dc1689ba4614.zip
FreeBSD-src-2de7b8d72b9f8324bd4e07219ca1dc1689ba4614.tar.gz
Centralize the default port finding code.
Work around YA Apache bug: don't send port in Host: header if it's the default port.
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r--lib/libfetch/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h
index c39e879..970153a 100644
--- a/lib/libfetch/common.h
+++ b/lib/libfetch/common.h
@@ -31,6 +31,9 @@
#ifndef _COMMON_H_INCLUDED
#define _COMMON_H_INCLUDED
+#define FTP_DEFAULT_PORT 21
+#define HTTP_DEFAULT_PORT 80
+
/* Structure used for error message lists */
struct fetcherr {
const int num, cat;
OpenPOWER on IntegriCloud