lib/protocol/http/header/authorization.rb in protocol-http-0.36.0 vs lib/protocol/http/header/authorization.rb in protocol-http-0.37.0
- old
+ new
@@ -18,10 +18,10 @@
def credentials
self.split(/\s+/, 2)
end
def self.basic(username, password)
- strict_base64_encoded = ["#{username}:#{password}"].pack('m0')
+ strict_base64_encoded = ["#{username}:#{password}"].pack("m0")
self.new(
"Basic #{strict_base64_encoded}"
)
end