We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1a4dea + b457782 commit 91c6b22Copy full SHA for 91c6b22
content/webhooks/securing/index.md
@@ -57,7 +57,7 @@ The goal is to compute a hash using your `SECRET_TOKEN`, and ensure that the has
57
end
58
59
def verify_signature(payload_body)
60
- signature = 'sha1=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new('sha1'), ENV['SECRET_TOKEN'], payload_body)
+ signature = 'sha1=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), ENV['SECRET_TOKEN'], payload_body)
61
return halt 500, "Signatures didn't match!" unless Rack::Utils.secure_compare(signature, request.env['HTTP_X_HUB_SIGNATURE'])
62
63
0 commit comments