Commit graph

  • f6f98c9e64 Remove server-architecture specifics from serve() and add them to main() Laslo Hunhold 2018-02-05 17:15:29 +0100
  • e35d3e1287 Refine manpage concerning the UNIX-domain socket file Laslo Hunhold 2018-02-05 17:15:05 +0100
  • 33d3d85f4f Refine error messages Laslo Hunhold 2018-02-04 21:40:51 +0100
  • 2c74631df9 Update LICENSE Laslo Hunhold 2018-02-04 21:33:33 +0100
  • ccdb51b96d Refactor the single source file into multiple modules Laslo Hunhold 2018-02-04 21:27:33 +0100
  • d480539e3e Homogenize license statement Laslo Hunhold 2017-08-30 23:33:11 +0200
  • 5defa985db config.mk: improve feature test macros and compatibility Hiltjo Posthuma 2017-08-30 14:27:04 +0200
  • 7e199ee04d Don't default to clang Laslo Hunhold 2017-08-14 00:06:26 +0200
  • bf23f53b12 Update MANPREFIX according to FHS Laslo Hunhold 2017-08-13 23:30:13 +0200
  • bed475cef1 Make sure we flush the buffers before leaving Laslo Hunhold 2017-08-08 22:06:21 +0200
  • 0b1c60eea2 Rename _i,_argused to i_,argused_ Laslo Hunhold 2017-08-04 17:53:43 +0200
  • 3a7c6ec0b9 Change the license formatting a bit to be in line with the OSI Laslo Hunhold 2017-08-04 17:14:02 +0200
  • 08ef9966b5 Import updated arg.h from farbfeld Laslo Hunhold 2017-08-04 17:12:54 +0200
  • 84d77d096b Import fixed arg.h from farbfeld Laslo Hunhold 2017-08-02 13:54:10 +0200
  • 075e314bdd Improve vhost handling and fix an uninitialized variable use Laslo Hunhold 2017-08-02 08:50:55 +0200
  • 63bafbf1d1 Import rewritten arg.h from farbfeld Laslo Hunhold 2017-08-02 08:38:06 +0200
  • ecb0d9e54e Do not remove existing socket file Quentin Rameau 2017-07-24 17:43:35 +0200
  • d2223ba259 Forward catched signals to children Quentin Rameau 2017-07-24 01:02:46 +0200
  • 36ec9b2239 Re-localize insock, don't manually close the socket Quentin Rameau 2017-07-24 00:59:34 +0200
  • 1a0eca12a5 Don't warn on cleanup unlink error Quentin Rameau 2017-07-24 00:56:43 +0200
  • 24167b5c07 Restore default handlers in children Quentin Rameau 2017-07-24 00:53:56 +0200
  • 1c5f45c090 Handle more signals, replace signal() with sigaction() Quentin Rameau 2017-07-24 00:51:26 +0200
  • 947b5a6a0a Register signal handlers in handlesignals() Quentin Rameau 2017-07-24 00:48:06 +0200
  • 3373992ca5 Get rid of atexit() Quentin Rameau 2017-07-24 00:38:17 +0200
  • 0fed1d5bd2 Use die() instead of fprintf+exit Quentin Rameau 2017-07-24 00:31:01 +0200
  • 820f644fe3 Don't ignore SIGCHLD in the main thread Quentin Rameau 2017-07-23 01:49:52 +0200
  • da8a3d2e29 Fix typo in signal handler, SIGINT -> SIGCHLD Quentin Rameau 2017-07-23 01:45:33 +0200
  • b04ba86f9d Fix sending of zero-size files Quentin Rameau 2017-07-22 01:36:56 +0200
  • 432898af71 Adjust last-byte-pos greater than files Quentin Rameau 2017-07-22 00:07:23 +0200
  • 64e7dc3fda Fix Content-Length calculation Quentin Rameau 2017-07-22 00:07:00 +0200
  • 2a5ab48294 use extended regex and fix example regex for realsies Hiltjo Posthuma 2017-07-22 12:32:08 +0200
  • 0fc6b0cccd don't allow named service->port translation Hiltjo Posthuma 2017-07-22 12:30:35 +0200
  • 4f2cc50416 if there is no matching vhost return 404 Not Found Hiltjo Posthuma 2017-07-22 12:30:23 +0200
  • c20aa17ae8 encode(): fix buffer-overflow and NUL terminate it Hiltjo Posthuma 2017-07-22 12:29:58 +0200
  • 8ec042a1ba Properly escape backslash in regex Laslo Hunhold 2017-07-21 18:37:55 +0200
  • 10d2ffe53a Fix example regex in vhosts Laslo Hunhold 2017-07-21 18:36:02 +0200
  • a80f984ea3 Fix syntax error Laslo Hunhold 2017-07-13 23:17:18 +0200
  • 21115d4a1b Fix logic error in vhost chrooting (from e592bbc) Quentin Rameau 2017-07-13 19:05:21 +0200
  • d7f5c6029e Fix the style a bit and prevent out-of-bounds index access for vhost[] Laslo Hunhold 2017-07-11 15:02:24 +0200
  • d3c1091669 Allow switching vhosts using flags and rework the usage Laslo Hunhold 2017-07-11 15:02:00 +0200
  • 141bb88af1 Cleanup socket file at exit. Quentin Rameau 2017-07-09 14:36:46 +0200
  • 260ef0a988 Make the socketfile accessible by clients Quentin Rameau 2017-07-09 12:09:13 +0200
  • 3b3fdd00e2 Split synopsis to reflect the dual usage. Quentin Rameau 2017-07-09 11:28:42 +0200
  • e46344e449 Change -U udsname to -U sockfile for clarification. Quentin Rameau 2017-07-11 13:58:55 +0200
  • d7cf0d7f57 Reorder config.def.h a bit Laslo Hunhold 2017-07-11 13:52:41 +0200
  • 06eba20e9d Add Quentin to LICENSE Laslo Hunhold 2017-07-11 13:46:22 +0200
  • e592bbc0fe Integrate compiled regex into vhost array Quentin Rameau 2017-07-11 13:36:40 +0200
  • 233bf68b4b Style fix Laslo Hunhold 2017-07-11 13:03:24 +0200
  • 000553d8c5 Add vhost support Laslo Hunhold 2017-07-11 12:34:55 +0200
  • 9e9facc9bf Properly serve empty files Laslo Hunhold 2017-07-11 12:33:21 +0200
  • af61e37a3a Check inet_pton() for system error Laslo Hunhold 2017-07-09 00:11:30 +0200
  • d598da3d52 Send absolute path when redirecting Laslo Hunhold 2017-07-07 13:33:43 +0200
  • fc9f02cee3 memcpy regions may not overlap, use memmove Hiltjo Posthuma 2017-07-05 19:06:04 +0200
  • bdff59a5f6 Check for UNIX-doman socket name truncation Laslo Hunhold 2017-07-04 22:44:47 +0200
  • d5a6e978b9 Small style fix Laslo Hunhold 2017-07-04 22:26:17 +0200
  • 7f391b6134 Import strtonum() and get rid of atoi() Laslo Hunhold 2017-07-04 22:21:36 +0200
  • c0a2c5de0a Improve timestamp() semantics Laslo Hunhold 2017-07-04 21:47:28 +0200
  • eda2c150e4 improve byte-range support Hiltjo Posthuma 2017-07-04 21:27:20 +0200
  • 9b8e2bdeb6 byte-range: fix range check for upper limit Hiltjo Posthuma 2017-07-04 18:18:24 +0200
  • a092d9aa4b the result of encode() and decode() is unused Hiltjo Posthuma 2017-06-28 19:07:57 +0200
  • e8dab1db94 config.mk: fix warning about strptime on glibc Hiltjo Posthuma 2017-06-28 18:40:54 +0200
  • f5270aa241 initialize request fields used as output in log Hiltjo Posthuma 2017-06-28 18:39:38 +0200
  • 5030846333 Rename filetype() to suffix() Laslo Hunhold 2017-06-28 08:40:34 +0200
  • 1e65a4848e Fix dir-check in dirent Laslo Hunhold 2017-06-28 08:29:31 +0200
  • c369738fa4 make directory listing a run-time flag Hiltjo Posthuma 2017-06-27 23:17:44 +0200
  • 434f2b3067 config.def.h: add jpeg alias, ogg audio mimetype Hiltjo Posthuma 2017-06-27 23:15:18 +0200
  • fc0873853c minor code-style consistency fixes Hiltjo Posthuma 2017-06-27 22:49:37 +0200
  • 96d035b284 add myself to the license (contributor) Hiltjo Posthuma 2017-06-27 22:35:39 +0200
  • 750f8381ce in the directory listing add / as suffix to save a redirect check Hiltjo Posthuma 2017-06-27 22:34:37 +0200
  • b6559eb3e7 fix memleak in scandir() Hiltjo Posthuma 2017-06-27 22:24:43 +0200
  • d1589c96fa header parsing: allow tabs are whitespace, compare case-insensitive Hiltjo Posthuma 2017-06-27 22:19:27 +0200
  • 2021da9bed send binary Content-Type by default (octet-stream) Hiltjo Posthuma 2017-06-27 21:40:00 +0200
  • 3efce07af9 fix memory leak in sendfile() Hiltjo Posthuma 2017-06-27 21:39:24 +0200
  • a551445fba scandir: sort directories and show filetype Hiltjo Posthuma 2017-06-27 21:37:49 +0200
  • ee10f83391 send status code for method not allowed if not GET or HEAD Hiltjo Posthuma 2017-06-27 21:37:18 +0200
  • 102cf09cc5 add newline after </html> Hiltjo Posthuma 2017-06-27 21:36:52 +0200
  • 241449454f remove unused fields and redundant check for HTTP method Hiltjo Posthuma 2017-06-27 21:36:14 +0200
  • 6ec37625f8 config.mk: fix compiler warning, just use DEFAULT_SOURCE Hiltjo Posthuma 2017-06-27 21:33:41 +0200
  • bd2e9e66ff Fix normabspath() to handle consecutive '..'s properly Laslo Hunhold 2017-06-21 11:02:35 +0200
  • 58450ffced Fix wording a little bit Laslo Hunhold 2017-06-21 10:37:39 +0200
  • 283bf91a0e Add normabspath() to replace realpath(), making quark work with musl Laslo Hunhold 2017-06-21 10:27:17 +0200
  • f4db83f68c Use dprintf() instead of snprintf()+sendbuffer() Laslo Hunhold 2017-06-21 07:41:52 +0200
  • 6347e2ec3e Rewrite quark from the ground up again Laslo Hunhold 2017-06-20 21:40:00 +0200
  • 29d53f65b7 Support encoding UTF-8 characters FRIGN 2016-09-05 20:10:16 +0200
  • 5ecd11fa3d Use sizeof() instead of magic constants FRIGN 2016-09-05 00:08:25 +0200
  • 6996e702e8 Use enum for HTTP stati and improve data structures FRIGN 2016-09-04 23:58:20 +0200
  • 89d7bbb9c3 Use die() in usage() FRIGN 2016-09-04 23:09:02 +0200
  • 12ebbc5ded Add missing newline FRIGN 2016-09-04 20:16:51 +0200
  • f04929e729 Add a few more mime types FRIGN 2016-09-02 11:08:54 +0200
  • cd2893965f Stop hiding what we're doing in the Makefile FRIGN 2016-09-02 10:49:42 +0200
  • 11481ed250 Simplify Makefile and package properly FRIGN 2016-09-02 10:43:27 +0200
  • 0ce86bba15 Initial commit of quark rewrite FRIGN 2016-09-02 09:59:02 +0200
  • 0e8cac1ee4 Prepare repository for rewrite FRIGN 2016-09-02 09:46:01 +0200
  • 4c14a02754 Fix syntax error in config.def.h FRIGN 2015-05-24 16:49:42 +0200
  • 7a587cfa36 Simplify config.mk sin 2014-12-01 17:14:22 +0000
  • 5b089b98a6 Undef MIN() because it screams on OpenBSD sin 2014-12-01 16:32:10 +0000
  • 2a83d925d7 Only set SO_REUSEADDR on the listening fd sin 2014-12-01 16:31:35 +0000
  • b017f90846 bind: re-use address, setsockopt SO_REUSEADDR Hiltjo Posthuma 2014-11-30 14:47:26 +0100
  • 70359ae2e9 config: add some more common mime-types Hiltjo Posthuma 2014-11-30 14:44:43 +0100
  • 192f44046c code-style fixes Hiltjo Posthuma 2014-11-30 14:42:16 +0100