Issue #20: fix Content-Type checking