Sending the right header for JSON responses. Fix #8.