def call(request_env)
      media_type = Rack::Request.new('CONTENT_TYPE' => request_env[:request_headers]['Content-Type']).media_type
      request_attributes = {
        :request_method => request_env[:method],
        :uri => request_env[:url],
        :media_type => media_type,
        :body => request_env[:body]
      }
      # the adapter will set the media type to form-encoded when not otherwise specified on 
      # requests it expects to have a body. see 
      # Net::HTTPGenericRequest#supply_default_content_type called in #send_request_with_body. 
      # other adapters do similarly, I think. 
      if METHODS_WITH_BODIES.include?(request_env[:method].to_s.downcase) && !request_attributes[:media_type]
        request_attributes[:media_type] = 'application/x-www-form-urlencoded'
      end
      oauthenticator_signable_request = OAuthenticator::SignableRequest.new(@options.merge(request_attributes))
      request_env[:request_headers]['Authorization'] = oauthenticator_signable_request.authorization
      @app.call(request_env)
    end
def call(request_env)
      media_type = Rack::Request.new('CONTENT_TYPE' => request_env[:request_headers]['Content-Type']).media_type
      request_attributes = {
        :request_method => request_env[:method],
        :uri => request_env[:url],
        :media_type => media_type,
        :body => request_env[:body]
      }
      # the adapter will set the media type to form-encoded when not otherwise specified on 
      # requests it expects to have a body. see 
      # Net::HTTPGenericRequest#supply_default_content_type called in #send_request_with_body. 
      # other adapters do similarly, I think. 
      if METHODS_WITH_BODIES.include?(request_env[:method].to_s.downcase) && !request_attributes[:media_type]
        request_attributes[:media_type] = 'application/x-www-form-urlencoded'
      end
      oauthenticator_signable_request = OAuthenticator::SignableRequest.new(@options.merge(request_attributes))
      request_env[:request_headers]['Authorization'] = oauthenticator_signable_request.authorization
      @app.call(request_env)
    end
do the thing