def right_header?(expected, actual)
      expected.inject(true) do |memo, (k, v)|
        memo && v == actual[k]
      end
    end
def right_header?(expected, actual)
      expected.inject(true) do |memo, (k, v)|
        memo && v == actual[k]
      end
    end
Checks for request comes with right header.