Skip to content

Fixes #1. Inspect Accept header and return proper Content-Type. #2

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

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

Conversation

statonjr
Copy link

Returns Content-Type of 'vnd.collection+json' for API requests if client specifies 'Accept: vnd.collection+json'. Otherwise, send 'application/json'.

@mamund
Copy link

mamund commented Nov 23, 2013

cool. looks good. I'll merge this in and publish over the weekend.

Thanks.

@johnlim
Copy link

johnlim commented Jun 13, 2014

Where do you submit an errata for this book? The book mentions

wget -S  -O - http://www.youtypeitwepostit.com/api/

should return Content-Type: application/vnd.collection+json but it does not.

$ wget -S --header "Accept: vnd.collection+json" -O - http://www.youtypeitwepostit.com/api/

also returns Content-Type: application/json
Why?

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.

3 participants