-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addQs method can't find this method from jquery '$.param' #7
Comments
@cuixiaolu Please give some more information regarding this. Preferably submit a PR. |
This error occurs when trying to add headers as an object to the connection query string eg: If you send the headers as a serialised string it works alright |
Sry for late response. Do you guys have any idea how to fix this? I can take a look this coming week, but I would want a bit more code that will reproduce the issue. |
In my case I ended up not needing the query strings so I'm afraid I don't have a fix.. |
Ah. Ok. Then, if it's okay with you I'll close this for now. If more people report or have this issue we can open it again. |
I've encountered the same scenario, needed the jQuery.param = (obj) => {
const str = [];
for (const p in obj) {
if (obj.hasOwnProperty(p)) {
str.push(
`${encodeURIComponent(p)}=${encodeURIComponent(obj[p])}`
);
}
}
return str.join('&');
}; |
No description provided.
The text was updated successfully, but these errors were encountered: