Commit Graph

99 Commits

Author SHA1 Message Date
pgoyette 866736a181 Minor typo 2012-12-04 22:42:14 +00:00
mrg 1be9745405 when generating URIs escape various characters as specified in RFC 3986.
this makes, among other things, files/dirs with "?" work with dir indexing.
2012-07-19 09:53:06 +00:00
joerg 62451b58c9 Add BOZO_PRINTFLIKE for functions that pass an argument and va_arg to
a vprintf-like function.
2012-03-14 23:47:19 +00:00
joerg f05babd200 Avoid using computed string as format string, just print it as string. 2012-02-29 23:38:46 +00:00
wiz 00872173ab Bump date for previous. Use more markup. 2012-02-20 09:45:22 +00:00
elric f082d14a0d Check in very basic compressed file support. httpd will now serve
a precompressed .gz file if it exists, the client claims to support
gzip and the request is not ranged.
2012-02-20 09:26:56 +00:00
elric 982f9a199b Use a ``certificate chain file'' rather than a ``certificate file'' so
that bozohttpd can be used with non-toplevel certs.
2012-02-20 08:40:46 +00:00
mrg 41f9e94281 merge bozohttpd 20111118 2011-11-18 09:51:31 +00:00
wiz c54b7cd091 Bump date for previous. 2011-11-17 23:19:30 +00:00
mrg d0ddf3e7e4 allow the -I option to be useful in non-daemon mode, by letting it force
the returned port number
2011-11-17 22:09:12 +00:00
joerg 43d0646972 Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
2011-08-27 15:33:59 +00:00
hannken 0456a9b514 Fix typo. 2011-08-21 10:45:33 +00:00
christos 2ead252a82 use const char [] for format. 2011-08-21 09:03:20 +00:00
christos a96758e4b9 XXX: gcc avoid non-literal strings 2011-08-14 11:38:11 +00:00
jmmv 9ef6767558 List myself as a contributor. 2011-04-24 07:18:59 +00:00
jmmv 94a4f45f78 Remove the "This option..." sentence prefix for all option definitions.
Adjust some sentences so that the new text makes sense.  OK mrg@.
2011-04-24 07:17:02 +00:00
mbalmer 17ab36f183 fix typo, bump date 2011-04-02 07:44:15 +00:00
mrg a45221975c add .mp4 as video/mp4. 2011-03-31 01:19:37 +00:00
jmmv 83bb438905 Add pid file support: if the new -P option is provided, it specifies the
location of the pid file to create.

OKed by mrg@.
2011-03-29 07:22:31 +00:00
reed 728c26c193 A filename with a colon in it made it appear to be the URI scheme
to various web browsers. So follow RFC 3986 4.2 and prepend ./
to the filename in the generated index hyperlink.

Okayed by mrg.
2011-03-10 14:39:40 +00:00
reed 92d8a7ba74 Fix typo. 2011-03-10 14:37:16 +00:00
pooka eb725c2168 Call daemon() later to make sure there is a listening socket by
the time the foreground process exits.

discussed with mrg.
2011-02-06 19:00:53 +00:00
pooka 09159e5c0a Make sure bozo_auth_check_401() isn't called with a NULL "request".
reviewed by mrg
2011-01-12 19:29:24 +00:00
tls eaa351b215 When invoking a content handler specified via -C, set the REDIRECT_STATUS
CGI variable to "200".  This approximates the Apache behavior which is
required by phpcgi in PHP 5.3 (and by some compilations of older PHP
versions).

I have a revolutionary idea.  Perhaps instead of imposing bizarre
requirements on other programs in the name of "security", the PHP
developers should make their own code compile with oh, I don't know,
maybe -Wuninitialized.  That might have an effect on the security of
systems using PHP rather than on the "security" of such systems...

...excuse me, got to go now, I think my airquotes just wore out.
2010-12-14 13:27:39 +00:00
wiz 8d65c98f7a Fix typo. 2010-09-21 07:05:28 +00:00
mrg df5be5736c merge bozohttpd 20100920 2010-09-20 23:11:38 +00:00
mrg 729c374954 initial import of bozohttpd 20100920. the only change missing in here is:
o  fix dynamic CGI content maps, from rudolf
2010-09-20 23:07:21 +00:00
mrg 44128f48a9 fix an error in the previous. 2010-09-20 22:18:22 +00:00
mrg 109d4102cc fix a serious error in virtual hosting support, noticed by seanb@netbsd,
and disallow ".." as a virtual host name!  also ".".

patch from sean.
2010-09-20 21:58:43 +00:00
mrg e0a4d05008 fix another compile error if NO_DAEMON_MODE is defined. also from rudolf. 2010-09-09 04:41:49 +00:00
mrg f3a95c474f fix a compile error if NO_DIRINDEX_SUPPORT is defined. from rudolf. 2010-09-08 00:47:44 +00:00
dogcow 172b076ece ...and free() memory malloc()ed by scandir so we don't leak. 2010-08-16 18:32:44 +00:00
dogcow 035f1ce17b readdir -> scandir and requisite changes, so that bozohttpd now sorts
directory listings.
2010-08-16 10:00:56 +00:00
mrg ee1ac2b96d avoid an unused variable warning(error) for MKCRYPTO=no builds. 2010-07-11 03:13:08 +00:00
wiz 88b9c8a3fe Fix typo, remove trailing whitespace. 2010-06-22 07:00:12 +00:00
mrg 30539536b5 merge bozohttpd 20100621 2010-06-22 05:24:12 +00:00
mrg aeb27ed42c merge bozohttpd 20100617. 2010-06-17 19:43:30 +00:00
mrg 1fe1233e27 merge bozohttpd 20100512 2010-05-15 06:48:27 +00:00
mrg d4586f7382 merge 20100510 properly 2010-05-10 14:53:17 +00:00
mrg a07e0db33b merge bozohttpd 20100510. 2010-05-10 14:44:19 +00:00
mrg ce2063081a merge bozohttpd 20100509. 2010-05-10 03:37:45 +00:00
mrg 390458fa54 import bozohttpd 20100509. it has these changes:
o  major rework and clean up of internal interfaces.  move the main
   program into main.c, the remaining parts are useable as library.
   add bindings for lua.  by Alistair G. Crooks <agc@netbsd.org>
o  fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
2010-05-10 03:30:04 +00:00
mbalmer 124961627e s/the the/the/ 2009-11-22 18:40:26 +00:00
agc 96b6b6617b Re-add two files necessary for the testsuite to run properly. 2009-11-05 07:46:10 +00:00
joerg 33d938a5e5 Do not indent global variables. 2009-11-04 18:32:27 +00:00
agc ac9efee5f2 Plug a memory leak for ssl-protected formatted output 2009-11-04 15:37:39 +00:00
wiz 81ea280bf2 Sort options in SYNOPSIS. 2009-05-23 20:26:18 +00:00
mrg 4157d76654 fix a new -Wsign-compare bug. 2009-05-23 08:26:26 +00:00
mrg 67eebf838c fix a merge botch in previous 2009-05-23 06:45:28 +00:00
mrg c6e75af28a merge bozohttpd 20090522 2009-05-23 02:26:03 +00:00