Commit Diff
- Commit:
b2e7d31ee036249faf5099d0a548d8e0b1dcc520
- From:
- Landry Breuil <landry@openbsd.org>
- Date:
- Message:
- send a newline first if erroring out in plaintext mode otherwise, the webserver might complain: 'upstream sent invalid header: "gotwebd\x20..." while reading response header from upstream' ok stsp@
- Actions:
- Patch | Tree
--- gotwebd/gotweb.c +++ gotwebd/gotweb.c @@ -282,7 +282,7 @@ render: err: if (html && fcgi_printf(c, "<div id='err_content'>") == -1) return; - if (fcgi_printf(c, "%s", err) == -1) + if (fcgi_printf(c, "\n%s", err) == -1) return; if (error) { if (fcgi_printf(c, "%s", error->msg) == -1)