tonic
tonic copied to clipboard
Bug: Tonic Response class sets two content-type headers
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).
The fix is just to change the Tonic Response class:
$headers = array('Content-Type' => 'text/html');
Great, thanks for finding this. Can you create a pull request?
Yes I'll create one
https://github.com/peej/tonic/pull/196