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!
This commit is contained in:
Baptiste Gelez 2019-03-12 17:00:23 +01:00 committed by Igor Galić
parent fe6e69d7c4
commit b52b8fc880

View file

@ -218,7 +218,7 @@ pub fn shared_inbox(conn: DbConn, data: SignedJson<serde_json::Value>, headers:
#[get("/nodeinfo/<version>")] #[get("/nodeinfo/<version>")]
pub fn nodeinfo(conn: DbConn, version: String) -> Result<Json<serde_json::Value>, ErrorPage> { pub fn nodeinfo(conn: DbConn, version: String) -> Result<Json<serde_json::Value>, ErrorPage> {
if version != "2.0" || version != "2.1" { if version != "2.0" && version != "2.1" {
return Err(ErrorPage::from(Error::NotFound)); return Err(ErrorPage::from(Error::NotFound));
} }