diff --git a/httplib.h b/httplib.h index 42e4d57..19df36b 100644 --- a/httplib.h +++ b/httplib.h @@ -6153,9 +6153,11 @@ inline bool ClientImpl::write_request(Stream &strm, Request &req, if (!req.has_header("Accept")) { req.headers.emplace("Accept", "*/*"); } +#ifndef CPPHTTPLIB_NO_DEFAULT_USER_AGENT if (!req.has_header("User-Agent")) { req.headers.emplace("User-Agent", "cpp-httplib/0.10.2"); } +#endif if (req.body.empty()) { if (req.content_provider_) {