Flowdock
method

headers_match?

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ActiveResource::Request
headers_match?(req) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activeresource/lib/active_resource/http_mock.rb, line 272
    def headers_match?(req)
      # Ignore format header on equality if it's not defined
      format_header = ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[method]
      if headers[format_header].present? || req.headers[format_header].blank?
        headers == req.headers
      else
        headers.dup.merge(format_header => req.headers[format_header]) == req.headers
      end
    end
Register or log in to add new notes.