From 3d2405cfb30ccc8113839c1be3ee265597b857a6 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 10 Feb 2003 22:28:21 +0000 Subject: Fix compile error, last_patch81 by Vladimir N. Oleynik --- networking/httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'networking/httpd.c') diff --git a/networking/httpd.c b/networking/httpd.c index e61518c20..fb37224cf 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -882,10 +882,12 @@ static int sendHeaders(HttpResponseNum responseNum) "Date: %s\r\nConnection: close\r\n", responseNum, responseString, config->found_mime_type, timeStr); +#ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH if (responseNum == HTTP_UNAUTHORIZED) { len += sprintf(buf+len, "WWW-Authenticate: Basic realm=\"%s\"\r\n", config->realm); } +#endif if (config->ContentLength != -1) { /* file */ strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); len += sprintf(buf+len, "Last-Modified: %s\r\n%s %ld\r\n", @@ -1519,7 +1521,6 @@ FORBIDDEN: /* protect listing /cgi-bin */ if(length < 0) // closed length = 0; body[length] = 0; // always null terminate for safety - urlArgs = body; } } -- cgit v1.2.3