Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd Fix debug output for redirects
details: https://anonhg.NetBSD.org/src/rev/742dc02ee128
branches: trunk
changeset: 787639:742dc02ee128
user: martin <martin%NetBSD.org@localhost>
date: Thu Jun 27 13:00:43 2013 +0000
description:
Fix debug output for redirects
diffstat:
libexec/httpd/bozohttpd.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 3a8b44f1c784 -r 742dc02ee128 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Thu Jun 27 12:44:58 2013 +0000
+++ b/libexec/httpd/bozohttpd.c Thu Jun 27 13:00:43 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.37 2013/06/27 12:20:08 martin Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.38 2013/06/27 13:00:43 martin Exp $ */
/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
@@ -975,7 +975,10 @@
request->hr_serverport);
else
portbuf[0] = '\0';
- bozo_warn(httpd, "redirecting %s%s%s", hostname, portbuf, url);
+ if (absolute)
+ bozo_warn(httpd, "redirecting %s", url);
+ else
+ bozo_warn(httpd, "redirecting %s%s%s", hostname, portbuf, url);
debug((httpd, DEBUG_FAT, "redirecting %s", url));
bozo_printf(httpd, "%s 301 Document Moved\r\n", request->hr_proto);
if (request->hr_proto != httpd->consts.http_09)
Home |
Main Index |
Thread Index |
Old Index