Skip to content

Commit

Permalink
fix req.timeout in web example
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Feb 18, 2025
1 parent 90af7ed commit 11f6351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ req.bodyJSON(myjson);
req.header("Content-Type", "application/json");

// Set a timeout for the request, in seconds
req.timeout(30);
req.timeout(std::chrono::seconds(30));
```
There are more functions, regarding certificate verification, proxy settings. You can find more info about them by looking through the headers!
Expand Down

0 comments on commit 11f6351

Please sign in to comment.