mikelax / spacebot

spacebot - A Slack Bot for exploring NASA images
https://slashspacebot.netlify.app
Apache License 2.0
6 stars 2 forks source link

Add support to handle slack ssl_check API calls #12

Closed mikelax closed 8 years ago

mikelax commented 8 years ago

It appears that slack will from time to time send "ssl pings" to check and make sure that a given API URL is properly serving SSL requests.

The handlers should consider these a no-op, but must return an HTTP 200 response. It appears the contents of the body does not matter.

Support should be added as a lib function to the following functions:

Example of the event received in lambda function.

{ body: 'ssl_check=1', pathParams: '{}', queryParams: '{}' }
mikelax commented 8 years ago

Fixed in #23