Skip to content

β™» Remove media_type from ORJSONResponse as it's inherited from the parent class - #5805

Merged
tiangolo merged 3 commits into
fastapi:masterfrom
Kludex:patch-4
Jun 10, 2023
Merged

tiangolo merged 3 commits into
fastapi:masterfrom
Kludex:patch-4

Conversation

@Kludex

@Kludex Kludex commented Dec 20, 2022

Copy link
Copy Markdown
Contributor

I just noticed... Since UJSONResponse also doesn't have it explicitly, I've removed from ORJSONResponse.

Ref.: https://github.com/encode/starlette/blob/d7558515020f4c0a96b199880c181a40678b18d5/starlette/responses.py#L182

@github-actions

Copy link
Copy Markdown
Contributor

πŸ“ Docs preview for commit fd6a964 at: https://63a1cc57b5043502d778a687--fastapi.netlify.app

@iudeen iudeen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense

@tiangolo tiangolo changed the title Remove media_type from ORJSONResponse β™» Remove media_type from ORJSONResponse as it's inherited from the parent class Jun 10, 2023
@tiangolo

Copy link
Copy Markdown
Member

Yep, nice, thanks @Kludex! πŸš€

And thanks everyone for the reviews β˜•

@tiangolo
tiangolo enabled auto-merge (squash) June 10, 2023 12:07
@tiangolo

Copy link
Copy Markdown
Member

πŸ“ Docs preview for commit 1523655 at: https://6484ac8eb6fff37f3e2efd9b--fastapi.netlify.app

@tiangolo
tiangolo merged commit 52fd0af into fastapi:master Jun 10, 2023
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.

6 participants