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(response): remove http content-type header on 204 status code #9664

Closed
wants to merge 1 commit into from

Conversation

ainyava
Copy link

@ainyava ainyava commented Mar 11, 2025

Hi,
The BUG is when you return a Response with status code of 204_NO_CONTENT it should not include the Content-Type header.
I've wrote a patch and drop the header in that case.

Regards, Ainyava

@tomchristie
Copy link
Member

Suspect this might break the browsable API in that case.

This project is currently only accepting security patches and necessary changes in line with newer Django versions.

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