| 1 | Patch-Source: https://github.com/daurnimator/lua-http/commit/f33b1867530dc7e255fff47afb25b84cdd38728d
|
| 2 | --
|
| 3 | From f33b1867530dc7e255fff47afb25b84cdd38728d Mon Sep 17 00:00:00 2001
|
| 4 | From: daurnimator <[email protected]>
|
| 5 | Date: Tue, 22 Aug 2023 23:37:40 +1000
|
| 6 | Subject: [PATCH] spec/request_spec: assert.falsy needs 1 argument exactly
|
| 7 |
|
| 8 | ---
|
| 9 | spec/request_spec.lua | 2 +-
|
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-)
|
| 11 |
|
| 12 | diff --git a/spec/request_spec.lua b/spec/request_spec.lua
|
| 13 | index e0b1e057..18b83379 100644
|
| 14 | |
| 15 | |
| 16 | @@ -361,7 +361,7 @@ describe("http.request module", function()
|
| 17 | -- different
|
| 18 | assert.same("GET", new_req.headers:get ":method")
|
| 19 | assert.same("/foo", new_req.headers:get ":path")
|
| 20 | - assert.falsy(new_req.headers:get "expect")
|
| 21 | + assert.falsy(new_req.headers:has "expect")
|
| 22 | assert.falsy(new_req.headers:has "content-type")
|
| 23 | assert.same(nil, new_req.body)
|
| 24 | assert.same(orig_req.max_redirects-1, new_req.max_redirects)
|