diff --git a/Cargo.toml b/Cargo.toml index fc4dc7a..df0da7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "droneconf" -version = "1.0.0" +version = "1.0.2" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/model.rs b/src/model.rs index 5e2194f..eccb968 100644 --- a/src/model.rs +++ b/src/model.rs @@ -47,7 +47,7 @@ impl Request { impl Response { pub fn new(data: String, is_woodpecker: bool) -> Self { - if is_woodpecker { + if !is_woodpecker { Self { data: Some(data), configs: None,