Fix parsing of content-type header.
Merge pull request #9 from prometheus/fix/content-type

Fix parsing of content-type header.