Emil Mikulic
|
449b78efaa
|
Use setUp and tearDown to manage test file.
|
2013-04-28 20:56:14 +10:00 |
|
Emil Mikulic
|
0b5d1d881c
|
Re-arrange tests, no functional change.
|
2013-04-28 20:56:14 +10:00 |
|
Emil Mikulic
|
b6df049c49
|
Improve "caught Terminated" output.
|
2013-04-28 20:56:14 +10:00 |
|
Emil Mikulic
|
7faf2787e4
|
parse_field() was looking for \r instead of [\r\n]
|
2013-04-28 20:56:14 +10:00 |
|
Emil Mikulic
|
36f22757f3
|
When logging, escape strings.
While I'm here, rename urlencode[_filename]() and improve it.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
77e050b4f4
|
Oops, wrong kind of line ending.
Also, enforce Connection:close since the test harness doesn't
handle keep-alive.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
897e85a46e
|
Test URL escaping in directory listing.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
b7038c8329
|
Don't log to stdout when testing.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
5ebb93d253
|
Log to stdout by default.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
4ce6e87748
|
Print "listening on" as a URL.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
58dca3d6b1
|
Default to --port 8080, or 80 if running as root.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
010d194180
|
uri -> url
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
597c81d3f1
|
Update AUTHORS.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
0ee2c3b2bf
|
Accept \n as line ending when parsing URL.
This fixes "HTTP 0.9" requests.
|
2013-04-28 20:56:04 +10:00 |
|
Emil Mikulic
|
97b7be4f79
|
Fix include path.
|
2013-04-28 20:55:57 +10:00 |
|
Emil Mikulic
|
adb6b02603
|
Print more quotes.
|
2013-04-28 20:55:57 +10:00 |
|
Emil Mikulic
|
b8bf9a0f72
|
Allow running of individual tests from cmdline.
|
2013-04-28 20:55:57 +10:00 |
|
Emil Mikulic
|
d65990449e
|
Make devel/test.py shorter.
|
2013-04-28 20:55:18 +10:00 |
|
Emil Mikulic
|
da24c211d7
|
Make devel/test.py less repetitive.
|
2013-04-28 20:41:30 +10:00 |
|
Emil Mikulic
|
594e65d474
|
Add coverage driver.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
c16f5c1007
|
More tests.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
8586258fbf
|
Working on unit tests.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
ffbc4c2b08
|
For developers: script to run through clang static analyzer.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
dbe886b9d2
|
Another developer script - clang with warnings.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
c42e5afec5
|
For developers - build with lots of warnings.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
ccbe7cffa7
|
Don't qsort() NULL.
Found by: clang static analyzer
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
1b7bbcc033
|
Fix clang nits.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
11bb4d8906
|
Use int over size_t.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
014ce0e988
|
Don't use init decls, they're C99.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
f32ffbabd5
|
Finished style changes.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
7343ecf35f
|
More style changes, fixed most of the compiler warnings.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
0442d41dab
|
More style changes, move a function.
|
2013-04-28 20:37:08 +10:00 |
|
Emil Mikulic
|
775cd3ad9b
|
Mostly style changes.
|
2013-04-28 20:37:01 +10:00 |
|
Emil Mikulic
|
1fa02dc545
|
Restyle and add printflike.
|
2013-04-28 20:36:56 +10:00 |
|
Emil Mikulic
|
8d11e14d11
|
Bump copyright year.
|
2013-04-28 20:34:03 +10:00 |
|
Emil Mikulic
|
8393796097
|
More inttype tweaks.
|
2013-04-28 20:33:20 +10:00 |
|
Emil Mikulic
|
bc692bb5f7
|
Casts and indents.
|
2013-04-28 20:33:14 +10:00 |
|
Emil Mikulic
|
7c65160849
|
Cosmetics.
|
2013-04-28 20:33:14 +10:00 |
|
Emil Mikulic
|
ec246e2a51
|
Avoid infinite loop (and quiet gcc warning)
|
2013-04-28 20:33:14 +10:00 |
|
Emil Mikulic
|
803655dba9
|
Ranges work now.
|
2013-04-28 20:33:14 +10:00 |
|
Emil Mikulic
|
41f4ec2d50
|
Should these be unsigned?
|
2013-04-28 20:33:13 +10:00 |
|
Emil Mikulic
|
3cc77c31d6
|
More longlong fixes.
|
2013-04-28 20:33:07 +10:00 |
|
Emil Mikulic
|
63bdabd79f
|
Working on large file support.
|
2011-01-15 14:37:56 +11:00 |
|
Emil Mikulic
|
1cd7fd3cda
|
Tidy up Makefile.
|
2011-01-15 14:37:56 +11:00 |
|
Emil Mikulic
|
0ab76c953b
|
Move trunk/ into base dir, move tests into devel/.
|
2013-04-28 20:44:06 +10:00 |
|
Emil Mikulic
|
7c4a9ffade
|
[ darkhttpd-1.7 release ]
|
2013-04-28 20:20:29 +10:00 |
|
Emil Mikulic
|
45912c373b
|
Fix off-by-one.
|
2013-04-28 20:20:29 +10:00 |
|
Emil Mikulic
|
8eec408691
|
Don't use strlen() in urlencode_filename()
Also move safe_url variable into for loop that uses it.
|
2013-04-28 20:20:29 +10:00 |
|
Emil Mikulic
|
ca6a07f714
|
is_bad_char -> needs_urlencoding, whitespace fixes.
|
2013-04-28 20:20:29 +10:00 |
|
Emil Mikulic
|
b02c1bba08
|
urlencode file names when generating directory listing.
Noticed by, patched by: nf
|
2013-04-28 20:20:29 +10:00 |
|