lib/flexirest/configuration.rb in flexirest-1.12.0 vs lib/flexirest/configuration.rb in flexirest-1.12.1

- old
+ new

@@ -90,19 +90,17 @@ end else if value.respond_to?(:call) @username = value else - value = CGI::escape(value) if value.present? && !value.include?("%") @username = value end end end def username=(value) Flexirest::Logger.info "\033[1;4;32m#{name}\033[0m Username set to be #{value}" - value = CGI::escape(value) if value.present? && !value.include?("%") @@username = value end def password(value = nil, &block) if value.nil? @@ -121,18 +119,16 @@ end else if value.respond_to?(:call) @password = value else - value = CGI::escape(value) if value.present? && !value.include?("%") @password = value end end end def password=(value) Flexirest::Logger.info "\033[1;4;32m#{name}\033[0m Password set..." - value = CGI::escape(value) if value.present? && !value.include?("%") @@password = value end DEFAULT_BASIC_URL_METHOD = :url