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

Response class does not set headers #1

Open
dev-marcel opened this issue Feb 19, 2015 · 0 comments
Open

Response class does not set headers #1

dev-marcel opened this issue Feb 19, 2015 · 0 comments

Comments

@dev-marcel
Copy link
Collaborator

In the Response class the function send() dus not do anything with the header array set in the construct. So no headers are set by sending the response.

See Application/Responses/Response.php on line 55.

Add:

//Set all headers defined in headers array
if(!empty($this->headers) and is_array($this->headers)) {
foreach($this->headers as $header) {
header($header);
}
}

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

1 participant