lib/vidispine/api/client/http_client.rb in vidispine-1.5.3 vs lib/vidispine/api/client/http_client.rb in vidispine-1.5.4
- old
+ new
@@ -49,13 +49,10 @@
@username = args[:username] || DEFAULT_USERNAME
@password = args[:password] || DEFAULT_PASSWORD
@authorization_header_key = args.fetch(:authorization_header_key, 'Authorization')
- @authorization_header_value = args.fetch(:authorization_header_value,
- %(Basic #{["#{username}:#{password}"]
- .pack('m')
- .delete("\r\n")}))
+ @authorization_header_value = args.fetch(:authorization_header_value, %(Basic #{["#{username}:#{password}"].pack('m').delete("\r\n")}))
content_type = args[:content_type_header] ||= DEFAULT_HEADER_CONTENT_TYPE
accepts = args[:accepts_header] ||= args[:accept_header] || DEFAULT_HEADER_ACCEPTS
@default_request_headers = {
\ No newline at end of file