mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
fix: mishandling of request header Content-Length for GET method
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
- fix: missing setup/teardown hooks for referenced testcase
|
- fix: missing setup/teardown hooks for referenced testcase
|
||||||
- fix: compatibility for `black` on Android termux that does not support multiprocessing well
|
- fix: compatibility for `black` on Android termux that does not support multiprocessing well
|
||||||
|
- fix: mishandling of request header `Content-Length` for GET method
|
||||||
|
|
||||||
**Changed**
|
**Changed**
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ class TRequest(BaseModel):
|
|||||||
url: Url
|
url: Url
|
||||||
params: Dict[Text, Text] = {}
|
params: Dict[Text, Text] = {}
|
||||||
headers: Headers = {}
|
headers: Headers = {}
|
||||||
req_json: Union[Dict, List] = Field({}, alias="json")
|
req_json: Union[Dict, List] = Field(None, alias="json")
|
||||||
data: Union[Text, Dict[Text, Any]] = ""
|
data: Union[Text, Dict[Text, Any]] = None
|
||||||
cookies: Cookies = {}
|
cookies: Cookies = {}
|
||||||
timeout: float = 120
|
timeout: float = 120
|
||||||
allow_redirects: bool = True
|
allow_redirects: bool = True
|
||||||
|
|||||||
Reference in New Issue
Block a user