Browse Source

Force json

master
Chris Smith 5 years ago
parent
commit
0d2fb9f546
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lineandsinker/services/sensu.py

+ 1
- 1
lineandsinker/services/sensu.py View File

@@ -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…
Cancel
Save