Support content type parameters.

Thanks to Caleb James DeLisle.