accept code ref for content_type attribute
Merge pull request #1 from leedo/master

accept code ref for content_type attribute