Omar Polo
4125c94fda
make sure @ is allowed, and rephrase another test
2021-02-06 13:57:12 +00:00
Omar Polo
8404ec301f
don't %-decode the query
2021-02-05 14:31:53 +00:00
Omar Polo
87f2b68b58
cgi now follows globbing rules
2021-02-02 22:38:35 +00:00
Omar Polo
5f715ce43f
print the header in the directory listing
2021-02-02 09:48:32 +00:00
Omar Polo
35744950aa
simplify handle_cgi
...
Now that I got rid of the enum+switch, adding more state is easier.
Before, we used an hack to remember if we had read the CGI reply or
not (c->code = -1).
This introduces a new state, handle_cgi_reply that reads the CGI
script reply, logs it, and only then switches to handle_cgi.
handle_cgi itself is cleaner, now it only reads into c->sbuf and send
what it had red.
We even get, almost for free, the 42 error. If read exists with -1 or
0 from in handle_cgi_reply, we return a proper error to the client.
We can extend this further in the future and also try to validate the
CGI reply (for now we're only looking for a \n).
2021-02-01 22:04:51 +00:00
Omar Polo
1e7591a922
parse_err is a const pointer
2021-02-01 19:58:04 +00:00
Omar Polo
6ff23c6739
use absolute paths in the regression suite
2021-02-01 11:04:21 +00:00
Omar Polo
e7c7f19c4e
more IRI tests
...
ensure non-encoded and pct-encoded hostnames are parsed correctly
2021-01-29 18:52:36 +00:00
Omar Polo
cef60084e6
fix puny-test build
2021-01-29 18:51:35 +00:00
Omar Polo
44ee1bac8b
use starts_with in puny.c
2021-01-27 15:35:09 +00:00
Omar Polo
46af8c6cfe
drop the daemon config in favour of the -f flag
...
Now it daemonize by default when running with a config, unless the -f
flag is given.
2021-01-27 12:04:37 +00:00
Omar Polo
7957cbd9aa
const-ify puny_decode (and add puny.c)
2021-01-27 11:21:23 +00:00
Omar Polo
3300cbe06a
initial punycode support
2021-01-27 10:47:49 +00:00
Omar Polo
252908e6bb
added support for location blocks
2021-01-24 18:53:26 +00:00
Omar Polo
c8b7433918
added support for location blocks
2021-01-24 14:11:40 +00:00
Omar Polo
7b31a6386d
test CGI with big files
2021-01-24 10:24:34 +00:00
Omar Polo
e7a2a99b5a
added index option
2021-01-24 09:14:01 +00:00
Omar Polo
6cdecad88d
fix test portability
...
wc return 2048 on fedora (it doesn't count the trailing \n), while on
OpenBSD, Void linux on aarch64 and Alpine linux on vmd(8) returns
2049.
2021-01-23 17:44:23 +00:00
Omar Polo
2349b02b26
bump the key size a little
...
on fedora with libretls (running on top of openssl) it won't open the
key otherwise.
2021-01-23 17:42:04 +00:00
Omar Polo
ce06cdc5bd
drop gg.py
2021-01-23 17:11:16 +00:00
Omar Polo
31a4993a94
use gg instead of gg.py for the regression suite
2021-01-23 17:10:00 +00:00
Omar Polo
3309ef975c
accumulate the whole response line for CGI scripts
2021-01-23 15:32:38 +00:00
Omar Polo
c421bd46ed
drop genbigfile
2021-01-22 17:24:33 +00:00
Omar Polo
609fc9f9d9
use a c program to fill the file
...
it's several order of magnitude faster than the equivalent shell script
2021-01-22 17:18:55 +00:00
Omar Polo
99f95f7762
fix for sha256sum
2021-01-22 17:14:40 +00:00
Omar Polo
5c2e310ede
brand new regress suite
2021-01-22 16:48:04 +00:00