module ShopifyAPI::Utils::HttpUtils

Public Class Methods

normalize_headers(headers) click to toggle source
# File lib/shopify_api/utils/http_utils.rb, line 11
def normalize_headers(headers)
  headers.to_h { |k, v| [k.downcase.sub("http_", "").gsub("_", "-"), v] }
end