From 6a73fcf6228ee063811df6c6fa657f29615dd8c3 Mon Sep 17 00:00:00 2001 From: shotaro kaneda Date: Sat, 9 Feb 2019 11:58:38 -0300 Subject: [PATCH] Do not send parameters with undefined to body #719 --- src/url/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/url/index.js b/src/url/index.js index c4963b93..5cfecd26 100644 --- a/src/url/index.js +++ b/src/url/index.js @@ -60,6 +60,10 @@ Url.params = function (obj) { var params = [], escape = encodeURIComponent; params.add = function (key, value) { + + if (value === undefined) { + return; + } if (isFunction(value)) { value = value();