mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 16:07:45 +08:00
fix #1174: pydantic validation error when body is None
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## 3.1.9 (2022-04-17)
|
## 3.1.9 (2022-04-17)
|
||||||
|
|
||||||
|
- fix #1174: pydantic validation error when body is None
|
||||||
- fix #1209: only convert jmespath path for some fields in white list
|
- fix #1209: only convert jmespath path for some fields in white list
|
||||||
- fix #1233: parse upload info with session variables
|
- fix #1233: parse upload info with session variables
|
||||||
- fix #1246: catch exceptions when getting socket address failed
|
- fix #1246: catch exceptions when getting socket address failed
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class ResponseData(BaseModel):
|
|||||||
cookies: Cookies
|
cookies: Cookies
|
||||||
encoding: Union[Text, None] = None
|
encoding: Union[Text, None] = None
|
||||||
content_type: Text
|
content_type: Text
|
||||||
body: Union[Text, bytes, List, Dict]
|
body: Union[Text, bytes, List, Dict, None]
|
||||||
|
|
||||||
|
|
||||||
class ReqRespData(BaseModel):
|
class ReqRespData(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user