Skip to content

Commit 11f6351

Browse files
authored
fix req.timeout in web example
1 parent 90af7ed commit 11f6351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/fetch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ req.bodyJSON(myjson);
3737
req.header("Content-Type", "application/json");
3838

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

0 commit comments

Comments
 (0)