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

fix(multipart): url overflow with GET #2653

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Conversation

JoviDeCroock
Copy link
Collaborator

@JoviDeCroock JoviDeCroock commented Aug 31, 2022

Resolves #2652

Summary

We have a bit of a suboptimal feature in place where we need to construct the URL before we construct the fetchOptions else we aren't reverting GET when the URL is too long here

This PR ensures we first construct the URL as a fix to the issue. Ideally we could do this check in fetchOptions as well so we don't rely on mutating context as well as not needing this implicit ordering.

@JoviDeCroock JoviDeCroock requested a review from kitten August 31, 2022 01:01
@changeset-bot
Copy link

changeset-bot bot commented Aug 31, 2022

🦋 Changeset detected

Latest commit: fce57db

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@urql/exchange-multipart-fetch Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock merged commit e542f46 into main Aug 31, 2022
@JoviDeCroock JoviDeCroock deleted the fix-multipart-exchange branch August 31, 2022 11:23
@urql-ci urql-ci mentioned this pull request Aug 31, 2022
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.

multipartFetchExchange with preferGetMethod sends empty request when query is too long
2 participants