sideshowcoder / canned

Server to respond with fake API responses, by using a directory of files for finding out what to say!
213 stars 46 forks source link

Doesn't consider Accepts Header to decide to return HTML or JSON #80

Closed git-jiby-me closed 8 years ago

git-jiby-me commented 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

git-jiby-me commented 8 years ago

@sideshowcoder Submitted a pull request introducing this fix, https://github.com/sideshowcoder/canned/pull/81, Please review

sideshowcoder commented 8 years ago

closed via #81