Explorar el Código

Force json

master
Chris Smith hace 5 años
padre
commit
0d2fb9f546
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      lineandsinker/services/sensu.py

+ 1
- 1
lineandsinker/services/sensu.py Ver fichero

@@ -6,4 +6,4 @@ class Sensu(Service):
6 6
         super().__init__("sensu")
7 7
 
8 8
     def accept_hook(self, identifier, request):
9
-        yield {"type": "sensu", **request.json}
9
+        yield {"type": "sensu", **request.get_json(force=True)}

Loading…
Cancelar
Guardar