From b52b8fc880e8e557f7d22c443563ba4ce0198ff2 Mon Sep 17 00:00:00 2001 From: Baptiste Gelez Date: Tue, 12 Mar 2019 17:00:23 +0100 Subject: [PATCH] Fix wrong condition, resulting in 404 for valid NodeInfo endpoints (#464) * Fix wrong condition, resulting in 404 for valid NodeInfo endpoints * Forgot to remove that dbg! --- src/routes/instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/instance.rs b/src/routes/instance.rs index 8fcd26ba..bdf605ad 100644 --- a/src/routes/instance.rs +++ b/src/routes/instance.rs @@ -218,7 +218,7 @@ pub fn shared_inbox(conn: DbConn, data: SignedJson, headers: #[get("/nodeinfo/")] pub fn nodeinfo(conn: DbConn, version: String) -> Result, ErrorPage> { - if version != "2.0" || version != "2.1" { + if version != "2.0" && version != "2.1" { return Err(ErrorPage::from(Error::NotFound)); }