RESTful-Web-APIs/example-code — pull request #2 by statonjr (2013-11-23 02:10:26+00:00)
Title: Fixes #1. Inspect Accept header and return proper Content-Type.

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