Fix content-type exception, closes #24