aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/httpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 382893bfb..9b4b7172d 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2045,9 +2045,10 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
2045#if ENABLE_FEATURE_HTTPD_BASIC_AUTH 2045#if ENABLE_FEATURE_HTTPD_BASIC_AUTH
2046 /* Case: no "Authorization:" was seen, but page does require passwd. 2046 /* Case: no "Authorization:" was seen, but page does require passwd.
2047 * Check that with dummy user:pass */ 2047 * Check that with dummy user:pass */
2048 if ((authorized < 0) && check_user_passwd(urlcopy, ":") == 0) { 2048 if (authorized < 0)
2049 authorized = check_user_passwd(urlcopy, ":");
2050 if (!authorized)
2049 send_headers_and_exit(HTTP_UNAUTHORIZED); 2051 send_headers_and_exit(HTTP_UNAUTHORIZED);
2050 }
2051#endif 2052#endif
2052 2053
2053 if (found_moved_temporarily) { 2054 if (found_moved_temporarily) {