`options[:headers] ||= {}`
No need to set it to itself if it's not falsy. (Remember, `a ||= b` is equivalent to `a || a = b`.)

This comment applies elsewhere too.