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

make "respond to" recognize HTTP Accept header request for JSON #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michalcarson
Copy link

This pull request adds to the conditional in RequestDispatcher::shouldReturnJson to look for the HTTP Accept header.

@sformisano
Copy link
Owner

Hey @michalcarson, thank you for this, I'll check this out next week.

At first glance, I don't see any issues, so I think I should be able to merge your PR.

Also thank you for the compliments, to be honest, this is a library I open-sourced a few years ago and do not actively use right now.

I am amazed at how much love it still gets to this day (I get emails and tweets a few times per month).

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.

2 participants