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

Forcing content type on the sendErrorResource the same way the sendResou... #50

Merged
merged 2 commits into from
Jan 6, 2015

Conversation

pavoleichler
Copy link
Contributor

Hi,
I've run into the following problem - I am forcing the default contentType of API response by providing an explicit $contentType value to ResourcePresenter::sendResource($contentType).

However ResourcePresenter::sendErrorResource() method works differently and does not provide a way to force the content type and always relies on the Accept http headers only. This seems a bit unfortunate, thus I have prepared this pull request which unifies the way both methods work.

Btw, great library. :)

drahak added a commit that referenced this pull request Jan 6, 2015
Forcing content type on the sendErrorResource the same way the sendResou...
@drahak drahak merged commit e45361b into drahak:master Jan 6, 2015
@drahak
Copy link
Owner

drahak commented Jan 6, 2015

Thank you.

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

Successfully merging this pull request may close these issues.

None yet

2 participants