Skip to content

Commit 7b55ecd

Browse files
committed
Fixed yhirose#650
1 parent e9575bc commit 7b55ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4871,7 +4871,7 @@ inline bool ClientImpl::write_request(Stream &strm, const Request &req,
48714871
}
48724872
}
48734873

4874-
if (!basic_auth_username_.empty() && !basic_auth_password_.empty()) {
4874+
if (!basic_auth_password_.empty()) {
48754875
headers.insert(make_basic_authentication_header(
48764876
basic_auth_username_, basic_auth_password_, false));
48774877
}

0 commit comments

Comments
 (0)