From 36cf8b75b71f8d1b389b53f5d709aa6a954226d7 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:37:55 +0000 Subject: [PATCH] feat: Updated lua/hurl/main.lua --- lua/hurl/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/hurl/main.lua b/lua/hurl/main.lua index fea2540..d82f3e6 100644 --- a/lua/hurl/main.lua +++ b/lua/hurl/main.lua @@ -138,7 +138,7 @@ local on_output = function(code, data, event) if line == '' or line == nil then response_state = 'body' elseif head_state == 'start' then - local key, value = string.match(line, '([%w-]+):%s*(.+)') + local key, value = string.match(line, '([%w-]+):%s*(.+)') or line, '' if key and value then response.headers[key] = value response.headers_str = response.headers_str .. line .. '\r\n'