summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/request/lib/multipart.js
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2016-02-22 11:59:14 -0800
committerMyles Borins <mborins@us.ibm.com>2016-03-07 15:20:36 -0800
commit4ed038808f7bb78cc00fce6162b3f71b45abbd66 (patch)
tree0fc314b5f3e9d64862fddf5bdee7765050527b7c /deps/npm/node_modules/request/lib/multipart.js
parent061ebb39c94eea22d34d20c6936787310f7bf9b0 (diff)
downloadnode-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.js3
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))
}