mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-14 20:08:23 +08:00
fix #1339: omit pseudo header names for HTTP/1, e.g. :authority, :method, :path, :schema
This commit is contained in:
@@ -13,6 +13,10 @@ teststeps:
|
||||
foo1: bar1
|
||||
foo2: bar2
|
||||
headers:
|
||||
:authority: postman-echo.com
|
||||
:method: POST
|
||||
:path: /get
|
||||
:schema: https
|
||||
User-Agent: HttpRunner/3.0
|
||||
validate:
|
||||
- eq: ["status_code", 200]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v4.1.3
|
||||
# NOTE: Generated By HttpRunner v4.1.4
|
||||
# FROM: request_methods/hardcode.yml
|
||||
|
||||
|
||||
@@ -18,7 +18,15 @@ class TestCaseHardcode(HttpRunner):
|
||||
RunRequest("get with params")
|
||||
.get("/get")
|
||||
.with_params(**{"foo1": "bar1", "foo2": "bar2"})
|
||||
.with_headers(**{"User-Agent": "HttpRunner/3.0"})
|
||||
.with_headers(
|
||||
**{
|
||||
":authority": "postman-echo.com",
|
||||
":method": "POST",
|
||||
":path": "/get",
|
||||
":schema": "https",
|
||||
"User-Agent": "HttpRunner/3.0",
|
||||
}
|
||||
)
|
||||
.validate()
|
||||
.assert_equal("status_code", 200)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user