mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-11-30 12:10:50 +01:00
fix sending trigger body
This commit is contained in:
parent
b00ad5dc52
commit
80eaca177a
1 changed files with 3 additions and 3 deletions
|
|
@ -112,10 +112,10 @@ fn trigger(client: &Agent, feed: &FeedConfig, config: &Config) -> Result<(), Tri
|
|||
}
|
||||
|
||||
debug!(request = ?req, "sending trigger request");
|
||||
if feed.body.is_null() {
|
||||
req.send_json(&feed.body)?;
|
||||
let res = if feed.body.is_null() {
|
||||
req.send_empty()?
|
||||
} else {
|
||||
req.send_empty()?;
|
||||
req.send_json(&feed.body)?
|
||||
};
|
||||
|
||||
let status = res.status();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue