mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
parent
06026bb47d
commit
3051152103
2 changed files with 5 additions and 21 deletions
|
@ -5978,7 +5978,7 @@ inline bool ClientImpl::write_request(Stream &strm, Request &req,
|
|||
if (!req.has_header("Accept")) { req.headers.emplace("Accept", "*/*"); }
|
||||
|
||||
if (!req.has_header("User-Agent")) {
|
||||
req.headers.emplace("User-Agent", "cpp-httplib/0.9");
|
||||
req.headers.emplace("User-Agent", "cpp-httplib/0.9.8");
|
||||
}
|
||||
|
||||
if (req.body.empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue