Mercurial > libervia-backend
changeset 3684:8353cc3b8db9
component AP gateway: fix wrong operator when testing HTTP code
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Sep 2021 08:29:09 +0200 |
parents | a1eff4e32848 |
children | 09f5ac48ffe3 |
files | sat/plugins/plugin_comp_ap_gateway.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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}")