mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 20:55:19 +03:00
24 lines
993 B
Diff
24 lines
993 B
Diff
Patch-Source: https://github.com/daurnimator/lua-http/commit/f33b1867530dc7e255fff47afb25b84cdd38728d
|
|
--
|
|
From f33b1867530dc7e255fff47afb25b84cdd38728d Mon Sep 17 00:00:00 2001
|
|
From: daurnimator <quae@daurnimator.com>
|
|
Date: Tue, 22 Aug 2023 23:37:40 +1000
|
|
Subject: [PATCH] spec/request_spec: assert.falsy needs 1 argument exactly
|
|
|
|
---
|
|
spec/request_spec.lua | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/spec/request_spec.lua b/spec/request_spec.lua
|
|
index e0b1e057..18b83379 100644
|
|
--- a/spec/request_spec.lua
|
|
+++ b/spec/request_spec.lua
|
|
@@ -361,7 +361,7 @@ describe("http.request module", function()
|
|
-- different
|
|
assert.same("GET", new_req.headers:get ":method")
|
|
assert.same("/foo", new_req.headers:get ":path")
|
|
- assert.falsy(new_req.headers:get "expect")
|
|
+ assert.falsy(new_req.headers:has "expect")
|
|
assert.falsy(new_req.headers:has "content-type")
|
|
assert.same(nil, new_req.body)
|
|
assert.same(orig_req.max_redirects-1, new_req.max_redirects)
|