title: case sensitive headers in get request using httparty in rails
body: <p>I'm currently getting an error when I make a GET request using httparty. The call works when I use <code>curl</code>. The error is as follows:</p>
  
  <blockquote>
    <p>\"Authdate\":\"1531403501\"}" }, { "error_code":
    "external_auth_error", "error_message": "Date header is missing or
    timestamp out of bounds" } ] }</p>
  </blockquote>
  
  <p>When I make the request via <code>curl</code> this is the header I use.</p>
  
  <p><code>curl -X GET -H "AuthDate: 1531403501"</code></p>
  
  <p>However, as you can see, the request changes from <code>AuthDate</code> to <code>Authdate</code> causing the error. Here is how I'm making the call:</p>
  
  <pre><code>require 'openssl'
  require 'base64'
  
  module SeamlessGov
    class Form
      include HTTParty
      attr_accessor :form_id
      base_uri "https://nycopp.seamlessdocs.com/api"
  
      def initialize(id)
        @api_key = ENV['SEAMLESS_GOV_API_KEY']
        @signature = generate_signature
        @form_id = id
        @timestamp = Time.now.to_i
      end
  
      def relative_uri
        "/form/#{@form_id}/elements"
      end
  
      def create_form
        self.class.get(relative_uri, headers: generate_headers)
      end
  
      private
  
      def generate_signature
        OpenSSL::HMAC.hexdigest('sha256', ENV['SEAMLESS_GOV_SECRET'], "GET+#{relative_uri}+#{@timestamp}")
      end
  
      def generate_headers
        {
          "Authorization"  =&gt; "HMAC-SHA256 api_key='#{@api_key}' signature='#{@signature}'",
          "AuthDate" =&gt; @timestamp
        }
      end
    end
  end
  </code></pre>
  
  <p>any workaround this?</p>