Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpFoundation] Fix problem with empty generator in StreamedJsonResponse #50331

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

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented May 15, 2023

Q A
Branch? 6.3 (Feature StreamedJsonResponse: #47709)
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix - was reported to me on Slack by @norkunas
License MIT
Doc PR symfony/symfony-docs#...

Currently when the Generator is empty the return is invalid JSON which should not happen. So adding a testcase and a fix to the problem with the empty generator.

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "6.3" but it seems your PR description refers to branch "6.3 for features / 5.4 or 6.2 for bug fixes".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@alexander-schranz alexander-schranz changed the title Fix problem with empty generator in StreamedJsonResponse [HttpFoundation] Fix problem with empty generator in StreamedJsonResponse May 15, 2023
@alexander-schranz alexander-schranz force-pushed the bugfix/empty-streamed-response-generator branch from 2f7b8ce to 97625df Compare May 15, 2023 19:14
@nicolas-grekas
Copy link
Member

Thank you @alexander-schranz.

@nicolas-grekas nicolas-grekas force-pushed the bugfix/empty-streamed-response-generator branch from 97625df to 39bb6b6 Compare May 16, 2023 12:10
@nicolas-grekas nicolas-grekas merged commit 8d24399 into symfony:6.3 May 16, 2023
@alexander-schranz alexander-schranz deleted the bugfix/empty-streamed-response-generator branch May 16, 2023 13:48
@fabpot fabpot mentioned this pull request May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants