From bd475865279662eec0d59d1d87ffcbf6afc952be Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 27 Sep 2021 08:29:09 +0200 Subject: [PATCH] component AP gateway: fix wrong operator when testing HTTP code --- sat/plugins/plugin_comp_ap_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/plugins/plugin_comp_ap_gateway.py b/sat/plugins/plugin_comp_ap_gateway.py index 7d90ada0..f641c4b5 100644 --- a/sat/plugins/plugin_comp_ap_gateway.py +++ b/sat/plugins/plugin_comp_ap_gateway.py @@ -411,5 +411,5 @@ class APGateway: } } resp = await self.signAndPost(inbox_url, url_actor, item_data) - if resp.code == 202: + if resp.code != 202: raise exceptions.NetworkError(f"unexpected return code: {resp.code}")