Clean up #add_content_type!

can't just do `headers.to_h`, since `#to_h` is not available for `nil`
in 1.9.x.