Skip to content

Commit

Permalink
Fix some issues with webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekeSnider committed Feb 1, 2019
1 parent 8dca931 commit 28dab22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Jared/Routing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ struct MessageRouting {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.httpBody = webhookBody
request.addValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")

urlSession?.dataTask(with: request)
urlSession?.dataTask(with: request).resume()
}
}

Expand All @@ -213,6 +214,7 @@ struct MessageRouting {
}

mutating func route(message myMessage: Message) {
notifyWebhooks(message: myMessage)
// Currently don't process any images
guard let messageText = myMessage.body as? TextBody else {
return
Expand Down
2 changes: 1 addition & 1 deletion JaredUI/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>146</string>
<string>152</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 28dab22

Please sign in to comment.