fix #39. Set Content-Type properly.