lib/bunq/signature.rb in bunq-client-0.6.0 vs lib/bunq/signature.rb in bunq-client-0.6.1
- old
+ new
@@ -32,10 +32,10 @@
unless signature_headers_value
fail AbsentResponseSignature.new(code: response.code, headers: response.raw_headers, body: response.body)
end
signature = Base64.strict_decode64(signature_headers_value.first)
- unless server_public_key.verify(digest, signature, response.body)
+ unless server_public_key.verify(digest, signature, "#{response.code}\n#{response.body}")
fail RequestSignatureRequired.new(code: response.code, headers: response.raw_headers, body: response.body)
end
end
private