]> cat aescling's git repositories - httpd-execline.git/commit
Fix: Avoid catchall 500 on unsupported hostnames
authorcat æscling <aescling@cat.family>
Mon, 29 Apr 2024 23:01:49 +0000 (19:01 -0400)
committercat æscling <aescling@cat.family>
Mon, 29 Apr 2024 23:14:56 +0000 (19:14 -0400)
commit4c68162f72f9cae2ea3e6a5c067e623d635bcc67
treef06ad9d1c4df919ada302d70e95733835c1d2a94
parent18f44e335d07ffd6a75fb90d7177e58e13b4d1d1
Fix: Avoid catchall 500 on unsupported hostnames

http-header-parse would exit failure (off the wrong side of an `if`)
when a hostname is declared unsuppurrted, triggering the overall `if`
wrapper to send a 500. this is concatenated to the already sent message,
resulting in a malformed document

the solution is to exit success on the unhappy path.

* Remove redundant backslashes
* Actually fix the bug
visible-to-httpd/binaries/http-header-parse.execline
visible-to-httpd/binaries/supported-hostname-test.execline