pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/bozohttpd/patches update to bozohttpd 20031005. c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/197546c30c0f
branches:  trunk
changeset: 462605:197546c30c0f
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Mon Oct 06 01:18:28 2003 +0000

description:
update to bozohttpd 20031005.  changes include:
o  fixes for basic authorisation.  from <ecu%ipv42.net@localhost>
o  always display file size in directory index mode
o  add .xbel, .xml & .xsl -> text/xml mappings.  from
   <wiz%danbala.ifoer.tuwien.ac.at@localhost>

diffstat:

 www/bozohttpd/patches/patch-aa |  36 ------------------------------------
 1 files changed, 0 insertions(+), 36 deletions(-)

diffs (40 lines):

diff -r ec8694544af4 -r 197546c30c0f www/bozohttpd/patches/patch-aa
--- a/www/bozohttpd/patches/patch-aa    Mon Oct 06 01:18:27 2003 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-$NetBSD: patch-aa,v 1.9 2003/09/27 15:37:43 wiz Exp $
-
---- bozohttpd.c.orig   2003-07-09 17:53:47.000000000 +0200
-+++ bozohttpd.c
-@@ -2092,6 +2092,9 @@ static struct content_map content_map[] 
-       { ".ice",       "x-conference/x-cooltalk",      "",             "", NULL },
-       { ".wrl",       "x-world/x-vrml",               "",             "", NULL },
-       { ".vrml",      "x-world/x-vrml",               "",             "", NULL },
-+      { ".xbel",      "text/xml",                     "",             "", NULL },
-+      { ".xml",       "text/xml",                     "",             "", NULL },
-+      { ".xsl",       "text/xml",                     "",             "", NULL },
-       { NULL,         NULL,                           NULL,           NULL, NULL, },
- };
- 
-@@ -2332,10 +2335,10 @@ error(int code, const char *fmt, ...)
- /* the follow functions and variables are used in handling HTTP errors */
- /* ARGSUSED */
- static void
--http_error(code, request, log)
-+http_error(code, request, logstr)
-       int     code;
-       http_req *request;
--      const char *log;
-+      const char *logstr;
- {
-       static  char buf[BUFSIZ];       /* static so we don't need to malloc? */
-       char portbuf[20];
-@@ -2344,7 +2347,7 @@ http_error(code, request, log)
-       const char *proto = (request && request->hr_proto) ? request->hr_proto : http_11;
-       int     size;
- 
--      debug((DEBUG_FAT, "http_error %d: %s", code, log));
-+      debug((DEBUG_FAT, "http_error %d: %s", code, logstr));
-       if (header == NULL || reason == NULL)
-               error(1, "http_error() failed (short = %p, long = %p)",
-                   header, reason);



Home | Main Index | Thread Index | Old Index