Commits
- Commit:
f890c8c54d88b529dc568eaf187b29a5acf6d22d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use a helper to handle no-body replies
- Commit:
36162ed86d688a25773a4575c164f8b6ac08632b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename goodbye -> close_conn
- Commit:
42bbdc7978acc6be9beb5baa7d94fedb7c211b49
- From:
- Omar Polo <op@omarpolo.com>
- Date:
trim initial forward slashes
this parse gemini://example.com///foo into an IRI whose path is
"foo". I'm not 100% this is standard-compliant but:
1. it seems a logical consequence of the URI/IRI cleaning algo (where
we drop sequential slashes)
2. practically speaking serving file a sequence of forward slashes
doesn't really make sense, even in the case of CGI scripts
- Commit:
f77a8c867ecc2881d60345b9e1b1ee4259189e9a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add ends_with
- Commit:
d1ca3911d29c9fb2147695b6622d9a088041a534
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix redirects
make sure redirect starts with /. This also requires a tweak in
check_path, in the case we go open_file -> send_dir -> open_file ->
check-path and the path starts with a slash.
- Commit:
06f233ad8aeb4c82d97e742c38792217e946efe0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ensure we're in the correct state
- Commit:
0ac2dceccc16af7722dae9b59917a329b525fefe
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync changes
- Commit:
2d7abb70179481c883c377855525a6097fc39d53
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add missing getprogname test + eventually include err.h
- Commit:
ea28a44931e2a38553fd2217f8471216da9b5ca8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
const-ify parameter to strtonum
- Commit:
95210bb3961727e034b99912a65700f6ace49753
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use recallocarray
it also does an overflow check on multiplication, other than being
more readable.
- Commit:
a5a09e44b2ca3fa86ecf401f3907dff8c2012d98
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use strtonum
- Commit:
5c342d059f884b73823e5a466902a3826b17e6c7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
more OpenBSD goodies
- Commit:
b2a6b6137186dd3fce21640150926a133a35c2c8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename mimes to mime ; pass config esplicitly to mime* functions
- Commit:
20c9ff466beafa357d501494989a6263516d3342
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo
- Commit:
33ac26a0e51e70ab31b03d6c2b3140595c3b4792
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix prototypes