]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/http: improve URI checks obs-knot-resolver-bs4hbr/deployments/2173
authorOto Šťáva <oto.stava@nic.cz>
Fri, 17 Jun 2022 08:57:58 +0000 (10:57 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Fri, 17 Jun 2022 10:16:09 +0000 (12:16 +0200)
commite280a162e43e7106e6f3ae4fdd0c9e3833d45def
tree37326908b6df785bd0afefdd5568af7337fce949
parent854559215c1c23ba8d121e183c2d9184a6ad6415
daemon/http: improve URI checks

The `check_uri()` function now only checks that the endpoint is either
`/doh` or `/dns-query`. Parameter checks were moved into
`process_uri_path()` so that the check only takes place for GET
requests. POST requests now do not care about parameters at all.
NEWS
daemon/http.c
tests/config/doh2.test.lua