commit a5f25a125bdd034cacf049f827a57f9cfc837134 from: Landry Breuil via: Thomas Adam date: Mon Oct 31 17:41:54 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 - 3d47d5be9ccd92b00e99622770fc369f20e57514 commit + a5f25a125bdd034cacf049f827a57f9cfc837134 blob - e0a659d9f3eedc5ed8dcbf7a9d8cf35c3de3f557 blob + d1f211ae16cc4d051601f487fd12c9919998f7bd --- 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)