lib/base.rb in sendgrid_webapi-0.1.2 vs lib/base.rb in sendgrid_webapi-0.2.0

- old
+ new

@@ -69,7 +69,14 @@ conn.request :url_encoded conn.response :json #, :content_type => /\bjson$/ conn.adapter Faraday.default_adapter end end + + private + def process_header_options options + on_behalf_of = options.delete(:on_behalf_of) + options.merge!({ headers: { "on-behalf-of" => on_behalf_of } }) unless on_behalf_of.nil? + options + end end end