lib/slack/events/request.rb in slack-ruby-client-0.16.0 vs lib/slack/events/request.rb in slack-ruby-client-0.17.0
- old
+ new
@@ -17,16 +17,16 @@
options[:signature_expires_in] || Slack::Events.config.signature_expires_in
end
# Request timestamp.
def timestamp
- @timestamp ||= http_request.headers['X-Slack-Request-Timestamp']
+ @timestamp ||= http_request.get_header('HTTP_X_SLACK_REQUEST_TIMESTAMP')
end
# The signature is created by combining the signing secret with the body of the request
# Slack is sending using a standard HMAC-SHA256 keyed hash.
def signature
- @signature ||= http_request.headers['X-Slack-Signature']
+ @signature ||= http_request.get_header('HTTP_X_SLACK_SIGNATURE')
end
# Signature version.
def version
'v0'