fix bug in 1.0.6 where content_type would not work