For ruby >= 2.0.0 headers must be an hash

This should give us support for ruby >= 2.0.0 this was the only problem
that I was able to find