Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitb457782

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parentf1a4dea commitb457782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎content/webhooks/securing/index.md‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp