Skip to content

Commit

Permalink
dont append functions or symbols to url
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 27, 2023
1 parent 565844a commit e9b0725
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Expand Up @@ -1354,7 +1354,7 @@ function appendQueryString(url, args) {
for (let k in args) {
if (args.hasOwnProperty(k)) {
let val = args[k];
if (typeof val == 'undefined')
if (typeof val == 'undefined' || typeof val == 'function' || typeof val == 'symbol')
continue;
url += url.indexOf("?") >= 0 ? "&" : "?";
url += k + (val === null ? '' : "=" + qsValue(val));
Expand Down
2 changes: 1 addition & 1 deletion dist/servicestack-client.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/servicestack-client.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/servicestack-client.mjs
Expand Up @@ -1432,7 +1432,7 @@ export function appendQueryString(url, args) {
for (let k in args) {
if (args.hasOwnProperty(k)) {
let val = args[k];
if (typeof val == 'undefined')
if (typeof val == 'undefined' || typeof val == 'function' || typeof val == 'symbol')
continue;
url += url.indexOf("?") >= 0 ? "&" : "?";
url += k + (val === null ? '' : "=" + qsValue(val));
Expand Down
2 changes: 1 addition & 1 deletion dist/servicestack-client.umd.js
Expand Up @@ -1612,7 +1612,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
for (var k in args) {
if (args.hasOwnProperty(k)) {
var val = args[k];
if (typeof val == 'undefined')
if (typeof val == 'undefined' || typeof val == 'function' || typeof val == 'symbol')
continue;
url += url.indexOf("?") >= 0 ? "&" : "?";
url += k + (val === null ? '' : "=" + qsValue(val));
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -1784,7 +1784,7 @@ export function appendQueryString(url: string, args: any): string {
for (let k in args) {
if (args.hasOwnProperty(k)) {
let val = args[k]
if (typeof val == 'undefined') continue
if (typeof val == 'undefined' || typeof val == 'function' || typeof val == 'symbol') continue
url += url.indexOf("?") >= 0 ? "&" : "?"
url += k + (val === null ? '' : "=" + qsValue(val))
}
Expand Down

0 comments on commit e9b0725

Please sign in to comment.