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

request content object checks CONTENT_TYPE but not HTTP_CONTENT_TYPE #23

Closed
harikt opened this issue Jan 17, 2014 · 5 comments
Closed

Comments

@harikt
Copy link
Member

harikt commented Jan 17, 2014

Reporting for @garoevans for the issue reported via twitter https://twitter.com/garoevans/status/423782504794181632

the request content object checks CONTENT_TYPE but not HTTP_CONTENT_TYPE. By design?

@garoevans
Copy link
Contributor

Looking around some more it seems that is only part of the problem. When using the DI container to configure the content object the server array is passed with a key of 'server' nested:

https://github.com/auraphp/Aura.Web/blob/develop-2/config/default/define.php#L51:L53

In PHP terms this causes the following output when var_dumping the $server variable inside the Request\Content is construct:

array(1) {
  ["server"]=>
  array(21) {
    ["DOCUMENT_ROOT"]=>
...

@harikt
Copy link
Member Author

harikt commented Jan 18, 2014

I feel this is not yet corrected in the built in php server. ( not talking about apache )

@pmjones
Copy link
Member

pmjones commented Jan 18, 2014

Entirely possible that it's not fixed for PHP server.

@harikt
Copy link
Member Author

harikt commented Jan 18, 2014

@garoevans what version of PHP is yours? We have been discussing this over #24 .

@garoevans
Copy link
Contributor

I'm running php5.5 but on my work laptop which is not with me at the
moment. I'll be updating the libraries on monday and will confirm if it's
fixed the way I was using it.

On 18 January 2014 15:51, Hari K T notifications@github.com wrote:

@garoevans https://github.com/garoevans what version of PHP is yours?
We have been discussing this over #24#24.


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-32684893
.

t: @garoevans
l: http://uk.linkedin.com/in/garoevans/
m: +44 7718 617228

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

3 participants