It looks like `headers` can be a string or hash.  Is the bug that it breaks on a Hash?  Also, would you be willing to add a spec for your fix?