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
}
# short circuits on unsupported hostnames
- if { ${supported_hostname_test} ${header_contents} }
+ ifelse -n { ${supported_hostname_test} ${header_contents} }
+ {
+ exit 0
+ }
export http_header_parse_${header_name} ${header_contents}
${0}
${supported_hostname_test}
# immediately 404s otherwise
ifelse {
- eltest ! -d \supported_domains/${1} -o
- ! -r \supported_domains/${1}
+ eltest ! -d supported_domains/${1} -o
+ ! -r supported_domains/${1}
}
{
if {