Set content-type header

Fixes #1