Fixes #1 by adding Content-Type checking