Fix bug that was causing POSTs missing a content-type header to 500

Closes #141