Skip to content

Commit 5f446dd

Browse files
authored
Merge pull request #3368 from jonhester/tmpDir
change deprecated os.tmpDir call to os.tmpdir
2 parents 137be35 + d5c3dfa commit 5f446dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

API.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2551,7 +2551,7 @@ following options:
25512551
- `timeout` - payload reception timeout in milliseconds. Sets the maximum time allowed for the
25522552
client to transmit the request payload (body) before giving up and responding with a Request
25532553
Timeout (408) error response. Set to `false` to disable. Defaults to `10000` (10 seconds).
2554-
- `uploads` - the directory used for writing file uploads. Defaults to `os.tmpDir()`.
2554+
- `uploads` - the directory used for writing file uploads. Defaults to `os.tmpdir()`.
25552555
- `failAction` - determines how to handle payload parsing errors. Allowed values are:
25562556
- `'error'` - return a Bad Request (400) error response. This is the default value.
25572557
- `'log'` - report the error but continue processing the request.

lib/defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ exports.connection = {
5151
output: 'data',
5252
parse: true,
5353
timeout: 10 * 1000, // Determines how long to wait for receiving client payload. Defaults to 10 seconds
54-
uploads: Os.tmpDir(),
54+
uploads: Os.tmpdir(),
5555
defaultContentType: 'application/json',
5656
compression: {}
5757
},

0 commit comments

Comments
 (0)