Fix content type

Fixes #497

`res.headers = response.headers;` appears to do nothing because the content type is still sent incorrectly. Do all the other headers have to be fixed as well?