# HG changeset patch # User Goffi # Date 1632724149 -7200 # Node ID 8353cc3b8db9fd4cd1faef43e7d09fd271b7ecc5 # Parent a1eff4e3284830b46f8b48c2afbbd4aeade1e71e component AP gateway: fix wrong operator when testing HTTP code diff -r a1eff4e32848 -r 8353cc3b8db9 sat/plugins/plugin_comp_ap_gateway.py --- a/sat/plugins/plugin_comp_ap_gateway.py Sun Sep 26 16:41:58 2021 +0200 +++ b/sat/plugins/plugin_comp_ap_gateway.py Mon Sep 27 08:29:09 2021 +0200 @@ -411,5 +411,5 @@ } } 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}")