Adds test and fix for redneckbeard/gadget#7

The Content-Type of the response should match the Content-Type of the
request provided the app supports that MIME type.