Skip to content

Commit fc9b1f6

Browse files
fix: case-insensitive header
1 parent c2d41e5 commit fc9b1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rest-nvim/result/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function result.write_res(bufnr, res)
291291
end, vim.split(res.headers, "\n"))
292292

293293
local cookies = vim.tbl_filter(function(header)
294-
if header:find("set%-cookie") then
294+
if header:lower():find("set%-cookie") then
295295
return header
296296
---@diagnostic disable-next-line missing-return
297297
end

0 commit comments

Comments
 (0)