Class: TrueLayerSigning::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/truelayer-signing/utils.rb

Class Method Summary collapse

Class Method Details

.normalise_headers!(headers) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/truelayer-signing/utils.rb', line 5

def self.normalise_headers!(headers)
  normalised_headers = {}

  headers.to_a.each { |header| normalised_headers[header.first.downcase] = header.last }

  normalised_headers
end