lib/akami/wsse.rb in akami-1.2.2 vs lib/akami/wsse.rb in akami-1.3.0

- old
+ new

@@ -113,10 +113,10 @@ # Returns a Hash containing wsse:UsernameToken details. def wsse_username_token if digest? token = security_hash :wsse, "UsernameToken", "wsse:Username" => username, - "wsse:Nonce" => Base64.encode64(nonce), + "wsse:Nonce" => Base64.encode64(nonce).chomp, "wsu:Created" => timestamp, "wsse:Password" => digest_password, :attributes! => { "wsse:Password" => { "Type" => PASSWORD_DIGEST_URI }, "wsse:Nonce" => { "EncodingType" => BASE64_URI } } # clear the nonce after each use @nonce = nil