Refactor out the canSendHeaders check
JsonResponseHandler: send the content type, close #90