Skip to content

Commit bc96634

Browse files
authored
Update template_server.rb
1 parent b17cd74 commit bc96634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template_server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_payload_request(request)
8282
begin
8383
@payload = JSON.parse @payload_raw
8484
rescue => e
85-
fail "Invalid JSON (#{e}): #{@payload_raw}"
85+
fail 'Invalid JSON (#{e}): #{@payload_raw}'
8686
end
8787
end
8888

@@ -127,7 +127,7 @@ def authenticate_installation(payload)
127127
# the signature sent in the `X-HUB-Signature` header. If they don't match,
128128
# this request is an attack, and you should reject it. GitHub uses the HMAC
129129
# hexdigest to compute the signature. The `X-HUB-Signature` looks something
130-
# like this: "sha1=123456".
130+
# like this: 'sha1=123456'.
131131
# See https://developer.github.com/webhooks/securing/ for details.
132132
def verify_webhook_signature
133133
their_signature_header = request.env['HTTP_X_HUB_SIGNATURE'] || 'sha1='

0 commit comments

Comments
 (0)