Closed zopsicle closed 4 years ago
Yeah that's fixable, have you got a sample configuration for e.g. caddy so I can test this?
Nevermind! I was misusing the API, like this:
$fcgi.header(Status => 404, $header);
But this passes Status as a argument, not as a pair, and apparently hash slurping does not work that way.
Solution:
$fcgi.header(Status => 404, |$header);
The Status header should be the first header for compatibility with some servers such as Caddy. Currently headers are printed in whatever order the hash puts them in.
Example: