lib/itrp/client.rb in itrp-client-1.0.10 vs lib/itrp/client.rb in itrp-client-1.0.11

- old
+ new

@@ -194,10 +194,10 @@ # Expand the given header with the default header def expand_header(header = {}) header = DEFAULT_HEADER.merge(header) header['X-ITRP-Account'] = option(:account) if option(:account) - header['AUTHORIZATION'] = 'Basic ' + ["#{option(:api_token)}:x"].pack("m*") + header['AUTHORIZATION'] = 'Basic ' + ["#{option(:api_token)}:x"].pack('m*').gsub(/\s/, '') if option(:source) header['X-ITRP-Source'] = option(:source) header['HTTP_USER_AGENT'] = option(:source) end header