Fixed bug caused by overly-specific checking of content type string

I did this using the regex you asked me to use.