component AP gateway: fix wrong operator when testing HTTP code

This commit is contained in:
Goffi 2021-09-27 08:29:09 +02:00
commit bd47586527

View file

@ -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}")