mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Updated the user agent string
This commit is contained in:
parent
b8dec12f15
commit
676f1b5a26
1 changed files with 1 additions and 1 deletions
|
@ -5670,7 +5670,7 @@ inline bool ClientImpl::write_request(Stream &strm, Request &req,
|
||||||
if (!req.has_header("Accept")) { req.headers.emplace("Accept", "*/*"); }
|
if (!req.has_header("Accept")) { req.headers.emplace("Accept", "*/*"); }
|
||||||
|
|
||||||
if (!req.has_header("User-Agent")) {
|
if (!req.has_header("User-Agent")) {
|
||||||
req.headers.emplace("User-Agent", "cpp-httplib/0.7");
|
req.headers.emplace("User-Agent", "cpp-httplib/0.9");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.body.empty()) {
|
if (req.body.empty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue