commit b2e7d31ee036249faf5099d0a548d8e0b1dcc520 from: Landry Breuil date: Mon Oct 31 13:18:01 2022 UTC 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@ commit - 21f077265038a0c30c857035d2ab286f293573b1 commit + b2e7d31ee036249faf5099d0a548d8e0b1dcc520 blob - 49409e54cca0ca1ec80f673b1720f6c8fb9ea677 blob + 62c8c986ac17851a371bfa80e6bdff7c7dd2084f --- gotwebd/gotweb.c +++ gotwebd/gotweb.c @@ -282,7 +282,7 @@ render: err: if (html && fcgi_printf(c, "
") == -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)