[En-Nut-Discussion] fix for - Realm: cgi"Content-Type: text/html

Damian Slee damian at commtech.com.au
Tue Feb 24 04:41:07 CET 2004


httpd.c
 
needed a \r\n at the end of auth_fmt_P[]. Otherwise "Content-Type:
text/html" gets appended to the line, not on a new line.
 
void NutHttpSendError(FILE * stream, REQUEST * req, int status)
{
..
static prog_char auth_fmt_P[] = "WWW-Authenticate: Basic
realm=\"%s\"\r\n";





Now displays "cgi-bin" as the realm, not "cgi"Content-Type: text/html"
in internet explorer.



More information about the En-Nut-Discussion mailing list