diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2016-02-22 11:59:14 -0800 |
---|---|---|
committer | Myles Borins <mborins@us.ibm.com> | 2016-03-07 15:20:36 -0800 |
commit | 4ed038808f7bb78cc00fce6162b3f71b45abbd66 (patch) | |
tree | 0fc314b5f3e9d64862fddf5bdee7765050527b7c /deps/npm/node_modules/request/lib/multipart.js | |
parent | 061ebb39c94eea22d34d20c6936787310f7bf9b0 (diff) | |
download | node-new-4ed038808f7bb78cc00fce6162b3f71b45abbd66.tar.gz |
deps: upgrade to npm 3.7.3
PR-URL: https://github.com/nodejs/node/pull/5369
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/request/lib/multipart.js')
-rw-r--r-- | deps/npm/node_modules/request/lib/multipart.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/npm/node_modules/request/lib/multipart.js b/deps/npm/node_modules/request/lib/multipart.js index 03618588cc..c128172618 100644 --- a/deps/npm/node_modules/request/lib/multipart.js +++ b/deps/npm/node_modules/request/lib/multipart.js @@ -68,6 +68,9 @@ Multipart.prototype.build = function (parts, chunked) { var body = chunked ? new CombinedStream() : [] function add (part) { + if (typeof part === 'number') { + part = part.toString() + } return chunked ? body.append(part) : body.push(new Buffer(part)) } |