Commit Graph

  • 11d36de0a2 Changes in default mimetypes master André Kugland 2022-12-10 04:06:05 -03:00
  • 6d5299e7da More secure Dockerfile André Kugland 2022-11-25 16:47:28 -03:00
  • defc1e8ce9
    Custom headers with the CLI option --header (#28) André Kugland 2022-12-06 07:46:52 -03:00
  • 64b03a032e open_sockets.py: remove unused import. Emil Mikulic 2022-11-23 11:18:39 +11:00
  • b5702b4f20 Bump version past release. Emil Mikulic 2022-10-02 12:34:32 +11:00
  • 976682f161
    Create codeql-analysis.yml Emil Mikulic 2022-10-08 16:18:30 +11:00
  • a7b8f8fa6e [ darkhttpd 1.14 release ] v1.14 Emil Mikulic 2022-10-02 12:29:13 +11:00
  • a88ecadafe fuzzer: take optional port number from environment variable. Emil Mikulic 2022-10-02 12:24:17 +11:00
  • 762956f1a8 Set running = 1 before entering the main loop. Emil Mikulic 2022-10-02 12:08:57 +11:00
  • 47920915c7
    Update illumos support to the modern era (#24) artemis everfree 2022-10-01 17:56:40 -07:00
  • 1eb6daa357 Fix crash when a file has a large (year 10,000+) mtime. Emil Mikulic 2022-10-02 11:50:02 +11:00
  • 1f166293b7 Update tests after adding slash to href for directories. Emil Mikulic 2022-10-02 11:38:12 +11:00
  • 1e4cddb6b6 Disable msan because it's not working. Emil Mikulic 2022-10-02 11:34:56 +11:00
  • a981031e6f
    Add slash to href for directories (#17) Daniel Nagy 2022-02-09 01:43:03 +01:00
  • 3641c2f50f Dir listing: special-case ".." to come first. Emil Mikulic 2022-01-19 20:10:50 +11:00
  • f0ca481fd1 Make header parsing case insensitive. Emil Mikulic 2022-01-19 20:01:32 +11:00
  • 1759a7a7d9 Add tests for --forward-https. Emil Mikulic 2021-08-22 13:18:36 +10:00
  • 4fd6a1067c Ignore __pycache__ dirs. Emil Mikulic 2021-08-22 13:04:49 +10:00
  • 7145426710 --forward-https has priority over --auth. Therefore, if the server's running with both options and the client connects via HTTP, a redirect will occur instead of the authentication being granted or denied. Paco Pascal 2021-08-18 02:14:23 -04:00
  • 49baf385e1 Forward to HTTPS if X-Forwarded-Proto is equal to "http". This can be enabled with "--forward-https". Paco Pascal 2021-08-17 23:52:54 -04:00
  • a8ae2b1de0
    Add license file (#10) Fabrice Fontaine 2021-07-21 12:41:41 +02:00
  • 59b30c5cbc
    Fix high CPU usage when timeout is disabled (#8) Tom Dryer 2021-06-26 18:41:19 -07:00
  • 667edacaa3
    Fix hung connection from consecutive requests (#7) Tom Dryer 2021-06-13 18:44:55 -07:00
  • 5c0f9babf1
    Properly divide list "headers" and lists. (#4) Solt Budavári 2021-04-08 01:32:56 +00:00
  • 35c488b95f
    Dockerize (#3) Miles Elam 2021-04-03 00:08:52 -07:00
  • 9222bbc9d8 Improve make_safe_uri coverage. Emil Mikulic 2021-03-21 15:31:04 +11:00
  • f3acb93b93 fuzz_llvm_make_safe_uri: get code from darkhttpd.c Emil Mikulic 2021-03-21 15:13:44 +11:00
  • 02b9908f71 Retire old developer scripts. Emil Mikulic 2021-03-21 15:06:57 +11:00
  • 81b491e60a Declare vars outside of for() loop for -std=c90. Emil Mikulic 2021-03-21 15:03:14 +11:00
  • d576efc9d8 warns: build with -std=c90. Emil Mikulic 2021-03-21 15:01:17 +11:00
  • f05413f8df Not using release script anymore, retire it. Emil Mikulic 2021-02-21 17:20:49 +11:00
  • 505223a9e5 Clean up after fuzzers. Emil Mikulic 2021-02-21 17:07:12 +11:00
  • dc0fd7ecdc Don't include URL or method in default_reply. Emil Mikulic 2021-02-21 17:02:39 +11:00
  • 3058f910d9 File listings: decoded URL in title and heading. Emil Mikulic 2021-02-21 16:45:12 +11:00
  • 2b37151afc Add support for logging with syslog. ilmich 2021-01-27 15:05:26 +01:00
  • f72e8d6afe Bump version past release. Emil Mikulic 2021-02-10 18:48:35 +11:00
  • afeb47443a [ darkhttpd 1.13 release ] v1.13 Emil Mikulic 2021-01-18 00:50:36 +11:00
  • 1845a4aa93 Update readme: add introduction, markdown. Emil Mikulic 2021-01-18 00:37:47 +11:00
  • fdf28d2ede Rename README. Emil Mikulic 2021-01-18 00:34:04 +11:00
  • dd49204609 Add a fuzzer that runs the server in the background. Emil Mikulic 2021-01-18 00:25:02 +11:00
  • 8cca3b6c87 Fix a bug when a range is requested and the request is too large. Emil Mikulic 2021-01-17 23:00:32 +11:00
  • c1cd3d0e2d Fix bug in handling of bad requests. Emil Mikulic 2021-01-17 22:11:54 +11:00
  • b57eb17d47 More Python 3 updates. Emil Mikulic 2021-01-17 17:29:23 +11:00
  • d39cc3849a test_auth: Add test for wrong auth. Emil Mikulic 2021-01-17 16:55:09 +11:00
  • 7e60a9b731 test_auth.py: Update to Python 3. Emil Mikulic 2021-01-17 16:52:47 +11:00
  • 3f236fd71b test.py: close sockets, more Python 3 cleanups. Emil Mikulic 2021-01-17 16:36:26 +11:00
  • 67c506b620 Convert test.py to Python 3. Emil Mikulic 2021-01-17 16:29:41 +11:00
  • 1990aee864 directory listing: Send viewport meta tag decho 2021-01-03 21:48:10 +06:00
  • 6a82e67772 Avoid file size overflow on 32-bit systems. Emil Mikulic 2020-07-01 22:07:12 +10:00
  • d777aacd98 Log using Combined Log Format (commonly found in apache log) solsTiCe d'Hiver 2017-11-27 20:10:02 +01:00
  • 85609c8095 add mp4 mine type Andreas Gal 2012-02-19 20:57:37 +01:00
  • 3a582f3c57 Honour LDFLAGS. Christian Hesse 2017-11-28 23:28:33 +01:00
  • 07af05745e Add SVG mime type. Teo Klestrup Röijezon 2018-02-26 15:49:24 +01:00
  • e9c474dfac Don't send extra blank line when --auth is disabled. Emil Mikulic 2020-07-01 21:04:17 +10:00
  • 598a47fe9d Add tests for --auth. Emil Mikulic 2020-07-01 21:00:46 +10:00
  • 027b0c90e5 Add basic-auth support. Ryan Jacobs 2019-05-03 17:43:42 -07:00
  • 47ba3fd7c7 -fno-omit-frame-pointer to get full backtraces in asan build. Emil Mikulic 2020-07-01 20:46:10 +10:00
  • 36ab416f73 Enable leak sanitizer. Emil Mikulic 2020-07-01 20:43:49 +10:00
  • f41be73a66 Silence -Wparentheses warning. Emil Mikulic 2020-07-01 20:15:27 +10:00
  • 6c7fb762ac Adjust test: make_safe_uri no longer strips query params. Emil Mikulic 2020-07-01 20:11:25 +10:00
  • e09f869072 Fix handling of files with question mark in the name. Mathieu Gagnon 2020-01-10 19:52:28 -05:00
  • 5fc747a64e Add tests for fetching a file with a question mark in its name. Emil Mikulic 2020-07-01 20:01:56 +10:00
  • 36aadb6f90 Tweak macros to avoid extraneous semicolons. Emil Mikulic 2020-07-01 19:43:30 +10:00
  • 9274bfbfe9 clang-warns: use clang in path by default. Emil Mikulic 2020-07-01 19:41:46 +10:00
  • 27e489aab7 Memory sanitizer workaround: unpoison fd_sets. Emil Mikulic 2020-07-01 19:18:13 +10:00
  • e2e693e1cf Add application/wasm mimetype Luca Weiss 2020-06-30 19:27:43 +02:00
  • cbbaba25fb Add benchmark. Emil Mikulic 2018-12-11 00:42:52 +11:00
  • ba63a6d60f Add test for --timeout. Emil Mikulic 2018-12-10 23:52:42 +11:00
  • f0a8dc6c6c Add --timeout cmdline option. Emil Mikulic 2018-12-10 23:33:13 +11:00
  • 8207cf6b0f run-tests: try to use the default gcc and clang. Emil Mikulic 2018-12-10 21:12:24 +11:00
  • 6e8abe2324 run-tests: don't mix msan with ubsan. Emil Mikulic 2018-12-10 21:02:46 +11:00
  • 7d0fc1d9f9 Clean more. Emil Mikulic 2018-12-10 20:36:07 +11:00
  • 38362a4111 Bump copyright year. Emil Mikulic 2018-12-10 01:11:55 +11:00
  • e5ce7390c3 open_sockets: finer grained timing. Emil Mikulic 2018-12-10 01:10:06 +11:00
  • 744bac5cb8 In debug mode: time how long select() takes. Emil Mikulic 2018-12-10 01:09:33 +11:00
  • 89af6956e2 Fix timeouts to close connections. Emil Mikulic 2018-12-10 00:54:12 +11:00
  • dcb89f3d0f Add helper script for opening sockets until they run out. Emil Mikulic 2018-12-10 00:30:31 +11:00
  • c2fbca8d5a If accept() fails, don't exit. Emil Mikulic 2018-12-09 23:49:43 +11:00
  • bdae96c653 Switch make_safe_url() to more efficient implementation. Emil Mikulic 2018-12-09 23:18:00 +11:00
  • 5f519fec8d Add make_safe_url_new() Emil Mikulic 2018-12-09 23:13:28 +11:00
  • 6b91b9dc05 Add LLVM fuzzer. Emil Mikulic 2016-09-02 19:20:12 +10:00
  • aad4574163 Bounds check first. Emil Mikulic 2018-08-22 01:14:17 +10:00
  • 41b68476c3 [ darkhttpd 1.12 release ] Emil Mikulic 2016-01-28 01:16:10 +11:00
  • 6acf37e879 Build with warnings. Emil Mikulic 2016-01-28 01:05:27 +11:00
  • 15eda67214 Fix IPv6 memory corruption crash on FreeBSD. Emil Mikulic 2016-01-28 01:03:38 +11:00
  • 485ebd1a20 Run tests under msan. Emil Mikulic 2016-01-28 00:41:34 +11:00
  • 26e7adea15 Add asan and ubsan to tests, watch stderr. Emil Mikulic 2016-01-24 16:39:32 +11:00
  • 27c899c165 Obvious %lld -> %llu correction. Emil Mikulic 2016-01-23 20:13:17 +11:00
  • ae676feaeb Add Makefile for tests and cleaning up. Emil Mikulic 2016-01-23 20:11:30 +11:00
  • 3478d24419 Make the output more obvious. Emil Mikulic 2016-01-23 20:10:10 +11:00
  • 112f1ccb92 Test builds with different defines. Emil Mikulic 2016-01-23 20:08:02 +11:00
  • f913e17125 Rename "cover" to "run-tests" Emil Mikulic 2016-01-23 20:05:02 +11:00
  • 26129431b9 Be explicit if the binary was built without IPV6 support. Emil Mikulic 2016-01-23 19:57:23 +11:00
  • 2ced9cac51 Try to build with IPv6 by default. Emil Mikulic 2016-01-23 19:55:33 +11:00
  • 79475170b2 Bump copyright year. Emil Mikulic 2016-01-23 19:51:37 +11:00
  • 0ee2971740 Catch up to clang changes. Emil Mikulic 2016-01-14 00:57:42 +11:00
  • ea93b88e62 Move HAVE_INET6 guards to avoid the appearance of functions that don't return. Emil Mikulic 2016-01-13 20:24:36 +11:00
  • 24fa3798b2 Explicitly cast getpid() result to int. Emil Mikulic 2016-01-13 20:18:30 +11:00
  • 955762645d Tidy up UTF-8 after merge. Emil Mikulic 2016-01-13 20:04:29 +11:00
  • 4d34abd3c9 Merge branches with UTF-8 changes. Emil Mikulic 2016-01-13 20:00:44 +11:00