Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from lonelyplanet/incoming-url-config
Browse files Browse the repository at this point in the history
Sending message fails if config.incoming_url is not set
  • Loading branch information
jimmycuadra committed Nov 10, 2014
2 parents 1eee742 + 24eccb3 commit 135bfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lita/adapters/slack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def prepare_payload(target, strings)
def http_post(payload)
res = Faraday.post do |req|
log.debug "Slack::http_post sending payload to #{incoming_url}; length: #{payload.to_json.size}"
req.url config.incoming_url, :token => config.incoming_token
req.url incoming_url, :token => config.incoming_token
req.headers['Content-Type'] = 'application/json'
req.body = payload.to_json
end
Expand Down

0 comments on commit 135bfa6

Please sign in to comment.