Skip to content

Commit 23f8c09

Browse files
committed
Fix documentation for timeout setting in curl codegen
1 parent 24d796d commit 23f8c09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegens/curl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Convert function takes three parameters
1818
* `indentCount` - The number of indentation characters to add per code level
1919
* `trimRequestBody` - Trim request body fields
2020
* `followRedirect` - Boolean denoting whether to redirect a request
21-
* `requestTimeout` - Integer denoting time after which the request will bail out in milli-seconds
21+
* `requestTimeout` - Integer denoting time after which the request will bail out in seconds
2222
* `multiLine` - Boolean denoting whether to output code snippet with multi line breaks
2323
* `longFormat` - Boolean denoting whether to use longform cURL options in snippet
2424
* `quoteType` - String denoting the quote type to use (single or double) for URL

codegens/curl/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ self = module.exports = {
226226
id: 'requestTimeout',
227227
type: 'positiveInteger',
228228
default: 0,
229-
description: 'Set number of milliseconds the request should wait for a response before ' +
229+
description: 'Set number of seconds the request should wait for a response before ' +
230230
'timing out (use 0 for infinity)'
231231
},
232232
{

0 commit comments

Comments
 (0)