Skip to content
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

Fixed XHR error on put requests when the query params are long #2

Merged
merged 4 commits into from Sep 28, 2018

Conversation

vaa1881
Copy link
Contributor

@vaa1881 vaa1881 commented Sep 28, 2018

No description provided.

this.httpConfig.data = this.serializer(params);
this.httpConfig.params = undefined;
this.httpConfig.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
} else if (method === this.Methods.PUT && (this.httpConfig.url + '?' + JSON.stringify(params)).length > 1500 && !data) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need !data check here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we don't

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 97.436% when pulling 1ce1a52 on vaa1881:patch-1 into 92c7634 on Workfront:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 97.436% when pulling 1ce1a52 on vaa1881:patch-1 into 92c7634 on Workfront:master.

@bhovhannes bhovhannes merged commit 6c4f14a into Workfront:master Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants