Skip to content

Commit 2682aec

Browse files
committed
setUserAgent method has been added
1 parent 57a3fb7 commit 2682aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void setUserAgent()
206206
{
207207
HttpRequest httpRequest("https://httpbun.com/get");
208208

209-
// You can set the TLS version to be used for the request with setTLSVersion method
209+
// You can set the user agent to be used for the request with setUserAgent method
210210
auto response = httpRequest
211211
.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0")
212212
.send()

0 commit comments

Comments
 (0)