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

Bug: Tonic Response class sets two content-type headers #195

Open
logistiker opened this issue Aug 28, 2015 · 4 comments
Open

Bug: Tonic Response class sets two content-type headers #195

logistiker opened this issue Aug 28, 2015 · 4 comments

Comments

@logistiker
Copy link

Tonic Response defaults to content-type = 'text/html' but $response->contentType = $mimetype; in Tonic Resource declares a new Content-Type header as well instead of overriding the response content-type, you end up with two content-type headers (different case).

@logistiker
Copy link
Author

The fix is just to change the Tonic Response class:

$headers = array('Content-Type' => 'text/html');

@peej
Copy link
Owner

peej commented Aug 28, 2015

Great, thanks for finding this. Can you create a pull request?

@logistiker
Copy link
Author

Yes I'll create one

@logistiker
Copy link
Author

#196

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

2 participants