lib/uffizzi/clients/api/http_client.rb in uffizzi-cli-0.5.2 vs lib/uffizzi/clients/api/http_client.rb in uffizzi-cli-0.6.0

- old
+ new

@@ -55,10 +55,10 @@ end if request.instance_of?(Net::HTTP::Post) request.body = params.to_json end request['Cookie'] = ConfigFile.read_option(:cookie) if require_cookies - if ConfigFile.exists? && ConfigFile.option_exists?(:basic_auth_user) && ConfigFile.option_exists?(:basic_auth_password) + if ConfigFile.exists? && ConfigFile.option_has_value?(:basic_auth_user) && ConfigFile.option_has_value?(:basic_auth_password) request.basic_auth(ConfigFile.read_option(:basic_auth_user), ConfigFile.read_option(:basic_auth_password)) end request end