all repos — cgit @ c0b59823035efc136a82a96094d164a979d9b2e9

a hyperfast web frontend for git written in c

redirect: cleanliness
Jason A. Donenfeld Jason@zx2c4.com
Thu, 13 Aug 2015 11:38:56 +0200
commit

c0b59823035efc136a82a96094d164a979d9b2e9

parent

622e64d5f2c56543f56438cb7a705c9023bec269

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M ui-shared.cui-shared.c

@@ -706,8 +706,7 @@

void cgit_redirect(const char *url, bool permanent) { htmlf("Status: %d %s\n", permanent ? 301 : 302, permanent ? "Moved" : "Found"); - htmlf("Location: %s\n", url); - htmlf("\n"); + htmlf("Location: %s\n\n", url); exit(0); }