Skip to content

Inherit from HTMLResponse instead of Response on _TemplateResponse (#2272)#2274

Merged
Kludex merged 1 commit intoKludex:masterfrom
sponsfreixes:use_html_response
Sep 7, 2023
Merged

Inherit from HTMLResponse instead of Response on _TemplateResponse (#2272)#2274
Kludex merged 1 commit intoKludex:masterfrom
sponsfreixes:use_html_response

Conversation

@sponsfreixes
Copy link
Contributor

@sponsfreixes sponsfreixes commented Sep 7, 2023

That way we can get rid of setting the media_type. Also allows using a more specific type (HTMLResponse) on applications/libraries using type annotations.

See discussion #2272.

…ludex#2272)

That way we can get rid of setting the media_type. Also allows using a more specific type (HTMLResponse) on applications/libraries using type annotations.
@Kludex
Copy link
Owner

Kludex commented Sep 7, 2023

Thanks :)

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.

2 participants