adding check for missing content-type header, fixes #2