changeset 3802:983df907d456

component AP gateway: set POST default response code to 202 (accepted)
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 14:15:23 +0200
parents 6952a002abc7
children d5f343939239
files sat/plugins/plugin_comp_ap_gateway/http_server.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/http_server.py	Fri Jun 17 14:15:23 2022 +0200
+++ b/sat/plugins/plugin_comp_ap_gateway/http_server.py	Fri Jun 17 14:15:23 2022 +0200
@@ -648,6 +648,8 @@
             request.finish()
             return
 
+        # default response code, may be changed, e.g. in case of exception
+        self.responseCode(request, http.ACCEPTED)
         try:
             return await self.APRequest(request, signing_actor)
         except Exception as e: