Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change deprecated os.tmpDir call to os.tmpdir #3368

Merged
merged 1 commit into from
Oct 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -2551,7 +2551,7 @@ following options:
- `timeout` - payload reception timeout in milliseconds. Sets the maximum time allowed for the
client to transmit the request payload (body) before giving up and responding with a Request
Timeout (408) error response. Set to `false` to disable. Defaults to `10000` (10 seconds).
- `uploads` - the directory used for writing file uploads. Defaults to `os.tmpDir()`.
- `uploads` - the directory used for writing file uploads. Defaults to `os.tmpdir()`.
- `failAction` - determines how to handle payload parsing errors. Allowed values are:
- `'error'` - return a Bad Request (400) error response. This is the default value.
- `'log'` - report the error but continue processing the request.
Expand Down
2 changes: 1 addition & 1 deletion lib/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports.connection = {
output: 'data',
parse: true,
timeout: 10 * 1000, // Determines how long to wait for receiving client payload. Defaults to 10 seconds
uploads: Os.tmpDir(),
uploads: Os.tmpdir(),
defaultContentType: 'application/json',
compression: {}
},
Expand Down