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

Allow XResponses to keep original headers provided to base response #212

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

sevdog
Copy link
Contributor

@sevdog sevdog commented Jul 31, 2024

Currently the middleware re-initialize a new response, this cause the loss of any previously set header.

This aims to provide such possibility when using the current codebase.

See #205

"""Return a HttpResponse with headers for Apache X-Sendfile."""
super().__init__(content_type=content_type)
# content-type must be porvided only as keyword argument to response
Copy link

Choose a reason for hiding this comment

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

There is a small spelling error in the word and the same error is made in other files

Suggested change
# content-type must be porvided only as keyword argument to response
# content-type must be provided only as keyword argument to response

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thank you.

@Natim Natim merged commit 1b294f0 into jazzband:master Aug 5, 2024
11 of 13 checks passed
@sevdog sevdog deleted the xaccel-headers branch August 5, 2024 08:29
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