Change response type from default to text/html

Closes #673.