Skip to content

Commit

Permalink
Change rest::execute_webhooks to a POST
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Hellyer committed Jan 24, 2017
1 parent e8a9086 commit c050c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/rest/mod.rs
Expand Up @@ -872,7 +872,7 @@ pub fn execute_webhook(webhook_id: u64, token: &str, map: Value)
let body = serde_json::to_string(&map)?;
let client = HyperClient::new();
let response = retry(|| client
.patch(&format!(api!("/webhooks/{}/{}"), webhook_id, token))
.post(&format!(api!("/webhooks/{}/{}"), webhook_id, token))
.body(&body))
.map_err(Error::Hyper)?;

Expand Down

0 comments on commit c050c59

Please sign in to comment.