File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ def register
301
301
transport_options [ :headers ] . merge! ( setup_basic_auth ( user , password ) )
302
302
transport_options [ :headers ] . merge! ( setup_api_key ( api_key ) )
303
303
transport_options [ :headers ] . merge! ( { 'user-agent' => prepare_user_agent ( ) } )
304
- transport_options [ :headers ] . merge! ( @custom_headers ) if @custom_headers
304
+ transport_options [ :headers ] . merge! ( @custom_headers ) unless @custom_headers . empty?
305
305
transport_options [ :request_timeout ] = @request_timeout_seconds unless @request_timeout_seconds . nil?
306
306
transport_options [ :connect_timeout ] = @connect_timeout_seconds unless @connect_timeout_seconds . nil?
307
307
transport_options [ :socket_timeout ] = @socket_timeout_seconds unless @socket_timeout_seconds . nil?
You can’t perform that action at this time.
0 commit comments