My WWW-Authenticate header should end with \r\n like all the others,
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 8 Nov 2008 08:00:22 +0000 (08:00 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 8 Nov 2008 08:00:22 +0000 (08:00 +0000)
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

httpd.c

diff --git a/httpd.c b/httpd.c
index 2437cdd..fcdd68e 100644 (file)
--- 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,