Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Some HTTP headers missing in CGI environment #477

Closed
wants to merge 1 commit into from
Closed

Some HTTP headers missing in CGI environment #477

wants to merge 1 commit into from

Conversation

nyov
Copy link

@nyov nyov commented Dec 9, 2014

Zend_Controller_Request_Http -> getHeader fails to find Content-Type at least in Apache, when run in a CGI environment (e.g. using php-fpm) and the Apache Environment is unavailable as a fallback.

The following patch works for me.

@froschdesign
Copy link
Member

@nyov
Sorry, but I can not found a signed CLA. See also: https://github.com/zendframework/zf1/blob/master/CONTRIBUTING.md

I hereby place this patch in the public domain,
releasing all copyright claims.
@nyov
Copy link
Author

nyov commented Dec 9, 2014

@froschdesign, and my apologies for having missed these guidelines first.
However I don't feel like signing paper for some two lines of code.
I put this contribution into the public domain. If it suits you, please re-submit or apply this patch in your own name.
And I'm sorry for not providing a unit test, I am no longer fluid in a php environment and don't know how to write a proper testcase here.

@froschdesign
Copy link
Member

@nyov
No problem and thanks for your work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants