We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9521938 commit 115057bCopy full SHA for 115057b
lib/reqTemplate.js
@@ -151,7 +151,10 @@ const globalMethods = {
151
* @returns {string}
152
*/
153
decode(data) {
154
- return decodeURIComponent(data)
+ if (typeof data !== 'string') {
155
+ return data;
156
+ }
157
+ return decodeURIComponent(data);
158
},
159
160
// Private helpers
0 commit comments