From 7b55ecdc5918e7d3e616651f4c74e5cc34a35cac Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 12 Sep 2020 16:11:14 -0400 Subject: [PATCH] Fixed #650 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 8bf8604..d3817a6 100644 --- a/httplib.h +++ b/httplib.h @@ -4871,7 +4871,7 @@ inline bool ClientImpl::write_request(Stream &strm, const Request &req, } } - if (!basic_auth_username_.empty() && !basic_auth_password_.empty()) { + if (!basic_auth_password_.empty()) { headers.insert(make_basic_authentication_header( basic_auth_username_, basic_auth_password_, false)); }