Closed git-jiby-me closed 8 years ago
If i have one GET endpoint, returning HTML and JSON based on Accepts header, it always delivers the HTML content whatever be the Accepts Header.
As far as i see, if there is HTML and JSON responses for a endpoint, canned should check the Accepts Header to decide which content to sent
@sideshowcoder Submitted a pull request introducing this fix, https://github.com/sideshowcoder/canned/pull/81, Please review
closed via #81
If i have one GET endpoint, returning HTML and JSON based on Accepts header, it always delivers the HTML content whatever be the Accepts Header.
As far as i see, if there is HTML and JSON responses for a endpoint, canned should check the Accepts Header to decide which content to sent