Skip to content

Commit 91c6b22

Browse files
author
hubot
committed
Merge pull request github#533 from github/update-1402371792
2 parents f1a4dea + b457782 commit 91c6b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/webhooks/securing/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The goal is to compute a hash using your `SECRET_TOKEN`, and ensure that the has
5757
end
5858

5959
def verify_signature(payload_body)
60-
signature = 'sha1=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new('sha1'), ENV['SECRET_TOKEN'], payload_body)
60+
signature = 'sha1=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), ENV['SECRET_TOKEN'], payload_body)
6161
return halt 500, "Signatures didn't match!" unless Rack::Utils.secure_compare(signature, request.env['HTTP_X_HUB_SIGNATURE'])
6262
end
6363

0 commit comments

Comments
 (0)