~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
My WWW-Authenticate header should end with \r\n like all the others,
[sgt/agedu]
/
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",
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,
"\nYou must authenticate to view these pages.");
} else {
ret = http_error("403", "Forbidden", NULL,