about summary refs log tree commit diff
path: root/tests/setup.sh
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-08-14 00:02:50 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2015-08-14 12:35:25 +0200
commitaa12084f9835783abbd1f1e4609f8de05e73cec4 (patch)
treea546f596e980b2e7c484b935b0ff8cbdaadf10ce /tests/setup.sh
parentMakefile: make "git/config.mak.uname" inclusion optional (diff)
downloadcgit-pink-aa12084f9835783abbd1f1e4609f8de05e73cec4.tar.gz
cgit-pink-aa12084f9835783abbd1f1e4609f8de05e73cec4.zip
ui-patch: make sure to send http headers
Requesting a text/plain patch with bad commit id made cgit send text
without proper http headers. This results in "500 Internal Server Error"
with "Premature end of script headers" in server logs.
So print http headers before error message and return.

Signed-off-by: Christian Hesse <mail@eworm.de>
Reviewed-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'tests/setup.sh')
0 files changed, 0 insertions, 0 deletions
f253e8da91112a5e44b53837964&follow=1'>Drop pledge privileges after daemonization 1.2June McEnroe 2021-02-01Remove use of "%n"June McEnroe 2021-02-01Check signals first in the loopJune McEnroe 2020-12-15Log a message when stopping a service waiting to restart 1.1June McEnroe 2020-11-10Refactor unveil calls so errors can be reported properlyJune McEnroe 2020-10-27Do not increment signalsJune McEnroe 2020-10-23Only look up group if one is namedJune McEnroe 2020-10-23Remove default defines of RUNDIR, ETCDIRJune McEnroe 2020-10-23Set shell scripts executable in buildJune McEnroe 2020-10-20Humanize milliseconds if interval is less than 1sJune McEnroe 2020-10-20Humanize restart intervalJune McEnroe 2020-08-17Document default catsit.conf location on OpenBSD 1.0June McEnroe 2020-08-17Template catsit script with RUNDIRJune McEnroe 2020-08-17Clean up includesJune McEnroe 2020-08-17Log service uptime in statusJune McEnroe