mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +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: compatibility for `black` on Android termux that does not support multiprocessing well
|
||||
- fix: mishandling of request header `Content-Length` for GET method
|
||||
|
||||
**Changed**
|
||||
|
||||
|
||||
@@ -51,8 +51,8 @@ class TRequest(BaseModel):
|
||||
url: Url
|
||||
params: Dict[Text, Text] = {}
|
||||
headers: Headers = {}
|
||||
req_json: Union[Dict, List] = Field({}, alias="json")
|
||||
data: Union[Text, Dict[Text, Any]] = ""
|
||||
req_json: Union[Dict, List] = Field(None, alias="json")
|
||||
data: Union[Text, Dict[Text, Any]] = None
|
||||
cookies: Cookies = {}
|
||||
timeout: float = 120
|
||||
allow_redirects: bool = True
|
||||
|
||||
Reference in New Issue
Block a user