This breaks the `type` option. How about `headers['Content-Type'] ||= ...`?