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: proxy resolves once the full stream has been completed. #555

Merged

Conversation

JackParn33
Copy link
Contributor

Currently if a request with the Accept-Encoding head is proxied e.g. with NextJs rewrites the response resolves before the full response has been processed.

@JackParn33 JackParn33 force-pushed the fix-proxy-resolving-before-full-response branch from d975e02 to 7cfaa93 Compare October 15, 2024 11:47
Copy link

pkg-pr-new bot commented Oct 15, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/aws@555

commit: 2d6f536

@JackParn33 JackParn33 force-pushed the fix-proxy-resolving-before-full-response branch from 7cfaa93 to 2d6f536 Compare October 15, 2024 13:51
Copy link
Contributor

@khuezy khuezy left a comment

Choose a reason for hiding this comment

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

Hey thanks for looking into this!
Will this have any side effect with requests that don't have the Accept-Encoding headers?

@conico974
Copy link
Contributor

Hey thanks for looking into this! Will this have any side effect with requests that don't have the Accept-Encoding headers?

No it should be totally safe, it will be piped into OpenNextNodeResponse anyway and that's the one that we await to end now.

Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

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

LGTM Thanks

@conico974 conico974 merged commit a5fd42f into opennextjs:main Oct 15, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Oct 15, 2024
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.

3 participants