Commit Graph

  • 9205377852 I added utf-8 in your code: "Content-Type: text/html; charset=utf-8\r\n" Alexey 2016-01-13 19:46:31 +11:00
  • 26785ceafe Add '<meta charset="utf-8"/>' to the html header Stephen Zhang 2015-12-28 14:41:54 +08:00
  • 4edc50c42f Use UTF-8 as the encoding for directory listing. Hugh Wang 2015-12-20 22:49:14 +08:00
  • 853a6af62d Indent, add dir, allow inconclusive. Emil Mikulic 2016-01-11 00:31:58 +11:00
  • 72159c5010 Add support for IPv6. Hugh Wang 2015-12-20 21:59:20 +08:00
  • 02b02a7615 Check the bound first. Emil Mikulic 2015-05-20 00:06:59 +10:00
  • 1c5fdb5607 Escape URLs according to RFC3986. Emil Mikulic 2015-05-19 22:02:12 +10:00
  • c4c0034242 Add --default-mimetype flag. Emil Mikulic 2015-05-19 21:40:26 +10:00
  • e9aeaba7fe Add test for --no-listing. Emil Mikulic 2015-05-19 21:23:14 +10:00
  • fc8e127bb7 Fix memory leak. Emil Mikulic 2015-05-19 21:17:42 +10:00
  • 6564a65dfa mention --forward-all in help output Christian Hesse 2015-05-19 00:43:42 +02:00
  • 03f4c1f390 add option to deny directory listing Christian Hesse 2015-05-19 00:43:41 +02:00
  • 4e726692f4 [ darkhttpd 1.11 release ] Emil Mikulic 2015-01-01 22:42:44 +11:00
  • aa8046a5a1 Remove unused var, add casts to str_to_num() calls. Emil Mikulic 2015-01-01 22:41:35 +11:00
  • 49ad7a0421 Call setgroups() before setgid() to drop supplementary groups. Emil Mikulic 2015-01-01 22:22:41 +11:00
  • 03a22661a0 Test keepalive. Emil Mikulic 2015-01-01 22:18:10 +11:00
  • de92584da1 Add TestHelper.get() Emil Mikulic 2015-01-01 21:47:59 +11:00
  • 81b1bcbd74 Test for unreadable directory (can't generate listing). Emil Mikulic 2015-01-01 21:20:08 +11:00
  • d5bd7558f4 Make str_to_num() check for ERANGE, use it instead of atoi(). Emil Mikulic 2015-01-01 21:00:57 +11:00
  • 4c8b1e22f3 chomp() isn't needed because read_line() strips [cr]lf. Emil Mikulic 2015-01-01 20:38:38 +11:00
  • 6e1f045393 Test resize in appendl(). Emil Mikulic 2015-01-01 20:35:37 +11:00
  • 946a910935 Test 404 and 403. Emil Mikulic 2015-01-01 20:32:52 +11:00
  • 456bbfcde6 Test CRLF handling in read_line(). Emil Mikulic 2015-01-01 20:16:47 +11:00
  • 72c5539412 When testing, build with -DDEBUG. Emil Mikulic 2015-01-01 18:32:01 +11:00
  • 4bf0ef5896 Zero slashes should be impossible here. Emil Mikulic 2015-01-01 18:26:35 +11:00
  • f24c9d0d59 Add a harness for fuzzing make_safe_uri() Emil Mikulic 2015-01-01 18:14:28 +11:00
  • e50accedb8 cp test_make_safe_uri.c fuzz_make_safe_uri.c Emil Mikulic 2015-01-01 17:10:47 +11:00
  • 32158f92b4 [ darkhttpd 1.10 release ] Emil Mikulic 2014-05-26 22:07:59 +10:00
  • 5058dfeb03 Add test for urldecode() Emil Mikulic 2014-05-26 22:01:22 +10:00
  • 11f953e783 printf [s]size_t as %z[du]. Emil Mikulic 2014-05-26 21:56:45 +10:00
  • 0001301dae cppcheck: use --force to check all #ifdef configurations. Emil Mikulic 2014-05-26 21:56:29 +10:00
  • e8a38f9c6a Remove query params. Emil Mikulic 2014-05-26 21:36:29 +10:00
  • 5854227fc7 Mark cppcheck executable. Emil Mikulic 2014-03-14 22:51:43 +11:00
  • 9fe3ed4fc1 Run test_make_safe_uri. Retire broken run-tests.sh Emil Mikulic 2014-03-14 22:50:44 +11:00
  • a8bc378777 Silence warning about unused arg. Emil Mikulic 2014-03-14 22:45:39 +11:00
  • 583ff7ce10 Retab README. No content changes. Emil Mikulic 2014-03-14 22:43:46 +11:00
  • 01ec165a51 Add .gitignore. Christian Hesse 2013-05-02 13:47:59 +02:00
  • f73bf69a1e Implement --forward-all to forward all requests to a given url. Emil Mikulic 2014-03-14 22:36:37 +11:00
  • d28bb0c9f7 ntohs() when reporting the port number. Emil Mikulic 2014-03-14 22:12:25 +11:00
  • 28c382d454 exit cleanly for --help Lukas Stabe 2014-02-05 23:49:09 +01:00
  • aa9859413e document port 0 == random available Lukas Stabe 2014-01-29 17:53:30 +01:00
  • bcadc424a4 display actual port and address Lukas Stabe 2014-01-29 17:32:47 +01:00
  • b43fee3c83 Don't fprintf() inside signal handler, mark running as volatile. Emil Mikulic 2014-03-14 00:02:54 +11:00
  • c97d2c4042 Add script to run cppcheck. Emil Mikulic 2014-01-08 02:05:00 +11:00
  • c44730e177 More cppcheck nits. Emil Mikulic 2014-01-08 02:01:00 +11:00
  • ad1f132cf2 Reduce variable scope to make cppcheck happy. Emil Mikulic 2014-01-08 01:55:12 +11:00
  • 7dc06f3096 Add test for --mimetypes Emil Mikulic 2013-06-10 20:41:46 +10:00
  • e6680c4f2f Add test to exercise memove() in make_safe_url() Emil Mikulic 2013-06-10 19:26:25 +10:00
  • ecfac80174 README: update default port. Emil Mikulic 2013-06-10 18:59:55 +10:00
  • 1f3f104166 Fix file_exists() comparison. Emil Mikulic 2013-06-10 18:56:14 +10:00
  • 4d28b300be Makefile: move .PHONY to the end. Emil Mikulic 2013-06-10 18:53:19 +10:00
  • 7551090ac5 Tests: add pointer to cover script which runs them. Emil Mikulic 2013-06-10 18:52:38 +10:00
  • 5d1bdd1fd3 [ darkhttpd-1.9 release ] Emil Mikulic 2013-04-29 01:06:31 +10:00
  • 049e842399 Optimization for case when no web forward is configured. Egor Ivanov 2013-04-23 20:31:21 +04:00
  • 5a0291f47e Implement --no-server-id Emil Mikulic 2013-04-29 00:55:08 +10:00
  • ccf0dbd809 Add test for --forward Emil Mikulic 2013-04-29 00:31:54 +10:00
  • e6e17fa0f3 Change web_forward_record from a hand-rolled linked list to an array. Emil Mikulic 2013-04-28 23:48:16 +10:00
  • ab7af194e6 Implement --forward. Egor Ivanov 2013-04-20 14:05:27 +04:00
  • 1b10a57f39 Make devel/cover clean up after itself. Emil Mikulic 2013-04-28 21:45:14 +10:00
  • ffbb4c9f7c Fix memory leak when diropen() fails. Emil Mikulic 2013-04-28 21:39:43 +10:00
  • a20e840c97 Make sure malloc and realloc can't be called with size 0. Emil Mikulic 2013-04-28 21:37:31 +10:00
  • efe37364eb Fix warnings found by clang r180088. Emil Mikulic 2013-04-28 21:24:33 +10:00
  • f29b75fb1d Clean up and improve the devel/ scripts. Emil Mikulic 2013-04-28 21:16:40 +10:00
  • c7db17bcec Put project page and contact address into comments. Emil Mikulic 2013-04-28 21:03:29 +10:00
  • d26a2956bf Make keep_alive() a tiny function instead of a macro. Emil Mikulic 2013-04-28 21:01:31 +10:00
  • a9a2aff851 Implement --no-keepalive. Emil Mikulic 2012-05-28 20:33:52 +10:00
  • 9ca7ed4795 Fix for when MAXNAMLEN is not found (Android) Vlatko Kosturjak 2010-07-01 00:21:35 +02:00
  • a8176d0ed0 [ darkhttpd-1.8 release ] Emil Mikulic 2011-05-03 20:53:50 +10:00
  • 8cdcad43c2 Add guard around __printflike Emil Mikulic 2011-05-03 20:50:31 +10:00
  • bfd58235c5 Test large (>2G, >4G) files. Emil Mikulic 2011-05-03 20:43:04 +10:00
  • 34ad70cc45 Run usage, not really a test. Emil Mikulic 2011-05-03 20:14:10 +10:00
  • c0c9692799 Check dependencies in devel/cover Emil Mikulic 2011-05-03 20:11:09 +10:00
  • 07be6a2f1b Bring preprocessor directives in line. Emil Mikulic 2011-05-01 19:29:13 +10:00
  • a3b31af2be Don't catch SIGQUIT. Emil Mikulic 2011-05-01 19:25:14 +10:00
  • e8c3e92aa9 Re-arrange usage(). Emil Mikulic 2011-05-01 19:24:31 +10:00
  • 910298566f Single byte corner cases. Emil Mikulic 2011-05-01 19:19:39 +10:00
  • 22b4dac09b Test directory redirect. Emil Mikulic 2011-05-01 19:13:25 +10:00
  • 862e3ac124 Improve handling of invalid ranges. Emil Mikulic 2011-05-01 19:08:29 +10:00
  • e8ec37109b Still more range test fiddling. Emil Mikulic 2011-05-01 19:08:12 +10:00
  • e4ab741461 Add test for backwards range. Emil Mikulic 2011-05-01 18:56:04 +10:00
  • e94a18b4e2 Passing bad-end range test. Emil Mikulic 2011-05-01 18:54:06 +10:00
  • 62f547da9d Test range requests, including one failing test. Emil Mikulic 2011-05-01 18:49:18 +10:00
  • aa0ec26397 Advertise that we accept ranges. Emil Mikulic 2011-05-01 18:43:14 +10:00
  • a0c87d39a2 Remove unnecessary headers from 304 reply. Emil Mikulic 2011-05-01 18:26:33 +10:00
  • a2eb59e928 Failing test for If-Modified-Since Emil Mikulic 2011-05-01 18:20:26 +10:00
  • c7b65d1123 Test for HEAD method. Emil Mikulic 2011-05-01 18:15:56 +10:00
  • d916f760b8 Implement straightforward GET test. Emil Mikulic 2011-05-01 18:13:41 +10:00
  • 449b78efaa Use setUp and tearDown to manage test file. Emil Mikulic 2011-04-17 19:01:52 +10:00
  • 0b5d1d881c Re-arrange tests, no functional change. Emil Mikulic 2011-04-17 19:00:04 +10:00
  • b6df049c49 Improve "caught Terminated" output. Emil Mikulic 2011-04-17 17:34:14 +10:00
  • 7faf2787e4 parse_field() was looking for \r instead of [\r\n] Emil Mikulic 2011-04-17 17:00:02 +10:00
  • 36f22757f3 When logging, escape strings. Emil Mikulic 2011-04-17 16:47:09 +10:00
  • 77e050b4f4 Oops, wrong kind of line ending. Emil Mikulic 2011-04-16 19:57:00 +10:00
  • 897e85a46e Test URL escaping in directory listing. Emil Mikulic 2011-04-16 19:27:06 +10:00
  • b7038c8329 Don't log to stdout when testing. Emil Mikulic 2011-04-16 19:15:32 +10:00
  • 5ebb93d253 Log to stdout by default. Emil Mikulic 2011-04-16 19:14:06 +10:00
  • 4ce6e87748 Print "listening on" as a URL. Emil Mikulic 2011-04-16 19:08:31 +10:00
  • 58dca3d6b1 Default to --port 8080, or 80 if running as root. Emil Mikulic 2011-04-16 19:07:57 +10:00
  • 010d194180 uri -> url Emil Mikulic 2011-04-16 18:52:53 +10:00
  • 597c81d3f1 Update AUTHORS. Emil Mikulic 2011-04-16 18:38:39 +10:00