mbalmer
bee8901ae3
remove trailing whitespace
2013-10-12 07:49:40 +00:00
mrg
7ec01116c2
copyright maint.
2013-07-11 07:46:37 +00:00
mrg
a4b84ca096
- update CHANGES with recent changes
...
- export esacpe_html() and use it in directory indexing
- update manual to include recent contributors
2013-07-11 07:44:19 +00:00
martin
8d76df8028
Check for needed authentication even before redirecting.
2013-06-27 13:11:11 +00:00
martin
19574f3ec5
Fix debug output for redirects
2013-06-27 13:00:43 +00:00
martin
f598b53e8a
Fix copy&pasto in debug output
2013-06-27 12:20:08 +00:00
martin
2b3a4643bf
After handling a request by sending a redirect, do not proceed with the normal
...
request handling (which would typically add error output after the end
of the redirect message).
2013-06-27 11:02:20 +00:00
martin
407204a79f
Redo previous (fixing a memory leak introduced), and while there rework
...
virtual server support - in daemonized mode mixed virtual and "main"
server usage would alter the virtual hostname depending on order of
requests.
To fix, move the effective virtual hostname into the request structure
and leave the httpd server description static.
2013-06-27 10:01:31 +00:00
martin
e575b99fcd
Do not keep pointers into a readdir result (which will become invalid
...
when closing the directory) - strdup() it instead.
Fixes the "bogus redirects" part of PR bin/47925 (atf test case
forthcoming)
2013-06-23 20:32:55 +00:00
mrg
5dc860cdbb
fix PR 47629, using a slightly different patch to the one in the PR.
...
this modifies escape_rfc3986() to escape '%' itself, and to properly
track the buffer size and nul out the final byte, not some random
byte that may actually be unmapped.
2013-03-09 21:36:04 +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
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
mrg
41f9e94281
merge bozohttpd 20111118
2011-11-18 09:51:31 +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
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
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
mrg
df5be5736c
merge bozohttpd 20100920
2010-09-20 23:11:38 +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
ee1ac2b96d
avoid an unused variable warning(error) for MKCRYPTO=no builds.
2010-07-11 03:13:08 +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
4157d76654
fix a new -Wsign-compare bug.
2009-05-23 08:26:26 +00:00
mrg
c6e75af28a
merge bozohttpd 20090522
2009-05-23 02:26:03 +00:00
mrg
bbbdac0a6f
merge bozohttpd 20090418. remove a couple of minor do-nothing local
...
changes that don't need to cause conflicts.
2009-04-18 21:22:03 +00:00
mrg
033876329d
merge bozohttpd 20090417
2009-04-18 07:28:24 +00:00
reinoud
ce5ceeea15
Fix redirection core dump as reported in PR#41042.
2009-03-23 12:49:28 +00:00
joerg
7925dff4ee
Add If-Modified-Since support.
2009-02-09 17:06:11 +00:00
tls
f0f7a44ff5
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
...
CGI handling, including bin/40355 . There are two main changes here:
1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.
2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.
After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):
a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.
b) process_cgi() will, of course continue to use the query string.
2009-02-04 22:55:58 +00:00
lukem
70d3d32311
fix -Wsign-compare issues
2009-01-18 00:36:20 +00:00
mrg
37b5177b06
fix a problem in %xy decoding.
2008-03-07 18:20:20 +00:00
mrg
707281a285
merge bozohttpd 20080303
2008-03-03 22:15:08 +00:00
perry
9dfe283011
remove cdefs.h at mrg's request
2007-12-16 02:38:24 +00:00
perry
36c7456d7c
include sys/cdefs.h so that __attribute__ can be fixed later
2007-12-15 16:32:05 +00:00
tls
18c80b6525
RCS IDs
2007-10-17 18:47:59 +00:00
tls
13d3c473b0
Fix two memory leaks noted by Coverity (CID-4694, CIT-4695) and use
...
SIMPLEQ_FOREACH where possible. Patch from Arnaud Lacombe.
2007-10-17 18:43:46 +00:00
tls
60dbe74596
Import of bozohttpd for its originally intended purpose: a small (~30k)
...
simple run-from-inetd httpd suitable for small systems (and some large
ones).
2007-10-16 01:14:01 +00:00