summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* use linux aio io-submitLeah Neukirchen2020-05-102-60/+135
|
* better error handling in write_clientLeah Neukirchen2020-05-091-7/+11
|
* allow setting default mimetype, default to application/octet-streamLeah Neukirchen2020-05-091-6/+6
|
* allow custom mime typesLeah Neukirchen2020-05-091-2/+7
|
* nicely exit on SIGINT and SIGTERMLeah Neukirchen2020-05-091-3/+28
|
* good morningLeah Neukirchen2020-05-091-3/+3
|
* add -P to only serve world-readable filesLeah Neukirchen2020-05-091-2/+9
| | | | | Note that this does not check intermediate directory traversals, for this u+x is still enough.
* add -I to disable directory indexesLeah Neukirchen2020-05-091-2/+7
|
* send_dir_redirect: send newline tooLeah Neukirchen2020-05-091-1/+1
|
* escape path in accesslogLeah Neukirchen2020-05-091-3/+10
|
* detect too big header generationLeah Neukirchen2020-05-091-1/+12
|
* fix empty Content-Length for HEADLeah Neukirchen2020-05-091-3/+3
|
* send content for 301 responsesLeah Neukirchen2020-05-091-2/+3
|
* refactor response generationLeah Neukirchen2020-05-091-106/+57
|
* send_error: refactorLeah Neukirchen2020-05-091-7/+15
|
* use intmax_t to print off_t valuesLeah Neukirchen2020-05-091-12/+22
|
* add support for listening on unix domain sockets (-u)Leah Neukirchen2020-05-091-31/+50
|
* use AF_UNSPEC if AI_V4MAPPED is not availableLeah Neukirchen2020-05-091-3/+5
| | | | Else we can't listen IPv4 only on these systems.
* Makefile: make work with bmakeLeah Neukirchen2020-05-081-0/+4
|
* rename OPEN_MAX to MAX_CLIENTSLeah Neukirchen2020-05-081-8/+7
|
* use AI_V4MAPPED only if availableLeah Neukirchen2020-05-081-1/+4
|
* add strptime prototype for glibc, use default visibilityLeah Neukirchen2020-05-081-3/+5
|
* simply enable sendfile on linuxLeah Neukirchen2020-05-082-3/+3
|
* shortcut for send_errorLeah Neukirchen2020-05-081-53/+30
|
* refactor hex decodingLeah Neukirchen2020-05-081-18/+17
|
* rewrite parse_rangeLeah Neukirchen2020-05-081-11/+36
| | | | Reject overflows and whitespace.
* detect and report ENAMETOOLONGLeah Neukirchen2020-05-081-0/+2
|
* detect overflow during percent decodingLeah Neukirchen2020-05-081-1/+6
|
* send_dir_redirect: increase response buffer, detect truncationLeah Neukirchen2020-05-081-30/+35
| | | | Thanks @duncaen.
* on_url: can be called multiple times for long URLsLeah Neukirchen2020-05-081-1/+6
|
* ignore duplicate headersLeah Neukirchen2020-05-081-2/+2
| | | | | | Fixes a memory leak. Thanks @duncaen.
* for vhost, detect Host: . and empty Host:Leah Neukirchen2020-05-081-1/+1
| | | | Thanks @duncaen.
* escape # in urls (else potentially HTML anchors)Leah Neukirchen2020-05-081-0/+1
|
* skip query parameters when parsing file nameLeah Neukirchen2020-05-081-0/+2
|
* define global for default portLeah Neukirchen2020-05-081-1/+2
|
* add .js content-typeLeah Neukirchen2020-05-081-0/+1
|
* add FEATURESLeah Neukirchen2020-05-081-0/+31
|
* reject HTTP/0.9 requestsLeah Neukirchen2020-05-081-2/+9
|
* respect Connection: headerLeah Neukirchen2020-05-071-3/+5
|
* send_error: fix logged lengthLeah Neukirchen2020-05-071-1/+1
|
* a few more common MIME typesLeah Neukirchen2020-05-071-1/+10
|
* make wwwroot configurableLeah Neukirchen2020-05-071-2/+5
|
* use getaddrinfo for -hLeah Neukirchen2020-05-071-10/+19
|
* argument parsingLeah Neukirchen2020-05-071-3/+24
|
* more fatal errors on startupLeah Neukirchen2020-05-071-4/+8
|
* not a daemon in the strict sense of the wordLeah Neukirchen2020-05-071-1/+1
|
* remove BAD_REQUEST, now obsoleteLeah Neukirchen2020-05-071-6/+3
|
* decode path at the end, keep it for access logLeah Neukirchen2020-05-071-75/+62
|
* send_dir_redirect: fix length in access logLeah Neukirchen2020-05-071-0/+2
|
* initial commitLeah Neukirchen2020-05-0719-0/+9653