From: simon Date: Sat, 8 Nov 2008 08:00:22 +0000 (+0000) Subject: My WWW-Authenticate header should end with \r\n like all the others, X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/commitdiff_plain/72bd16db96dde42675538efcd53492be69c0bdec My WWW-Authenticate header should end with \r\n like all the others, not \r. No wonder Safari got confused; I'm surprised Firefox didn't! git-svn-id: svn://svn.tartarus.org/sgt/agedu@8291 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/httpd.c b/httpd.c index 2437cdd..fcdd68e 100644 --- a/httpd.c +++ b/httpd.c @@ -262,7 +262,7 @@ char *got_data(struct connctx *ctx, char *data, int length, if (!magic_access && !auth_correct) { if (auth_string) { ret = http_error("401", "Unauthorized", - "WWW-Authenticate: Basic realm=\""PNAME"\"\r", + "WWW-Authenticate: Basic realm=\""PNAME"\"\r\n", "\nYou must authenticate to view these pages."); } else { ret = http_error("403", "Forbidden", NULL,