소스 검색

pyramid: default value of data_json must be a dict

Bastien Sevajol 7 년 전
부모
커밋
24bfa1cfcb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hapic/ext/pyramid/context.py

+ 1 - 1
hapic/ext/pyramid/context.py 파일 보기

@@ -33,7 +33,7 @@ class PyramidContext(ContextInterface):
33 33
             json_body = req.json_body
34 34
             # TODO : raise exception if not correct , return 400 if uncorrect instead ?
35 35
         else:
36
-            json_body = None
36
+            json_body = {}
37 37
 
38 38
         return RequestParameters(
39 39
             path_parameters=req.matchdict,