Fix parsing of content-type header.

@juliusv