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

Remove Empty Request Headers #93

Closed
mbande opened this issue Sep 30, 2018 · 3 comments
Closed

Remove Empty Request Headers #93

mbande opened this issue Sep 30, 2018 · 3 comments

Comments

@mbande
Copy link
Contributor

mbande commented Sep 30, 2018

it seems that django's request.META, adds many http headers with empty values if they does not exist in client request. e.g. client send a request without Content-Type header, but request.META contains a CONTENT_TYPE key with empty string value.
i think revproxy should not send this headers to upstreams, as it does not make sense to send Content-Type: '' to a web server

@brianmay
Copy link
Collaborator

brianmay commented Oct 1, 2018

Pull requests welcome :-)

@seocam
Copy link
Contributor

seocam commented Jun 6, 2020

This is something we want for 1.0 (long coming milestone).
I'd say it's a duplicate of #33.

@seocam seocam closed this as completed Jun 6, 2020
@petrprikryl
Copy link

petrprikryl commented Mar 20, 2021

Just trying PgHero behind proxy and got error: "" is not a valid MIME type in mime_type.rb.

I have tried request_payload = None based on #99 but it didn't help. So I wouldn't consider this issue as duplicate od #33.

PgHero is working just fine with patch from #94.

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

No branches or pull requests

4 participants