Skip to content

Commit

Permalink
feat: Updated lua/hurl/main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Mar 13, 2024
1 parent ab1643d commit 36cf8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/hurl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 36cf8b7

Please sign in to comment.