Skip to content

Commit

Permalink
fix(*): change headers from key/val array to map
Browse files Browse the repository at this point in the history
  • Loading branch information
tysoekong authored Jun 6, 2024
1 parent f0ac80e commit e1a84b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/resty/aws/stream/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,7 @@ function Stream:next_message()
local header_value, header_value_len = _HEADER_EXTRACTORS[header_type](self)
headers_bytes_read = header_value_len + headers_bytes_read

headers[#headers+1] = {
key = header_key,
value = header_value,
}
headers[header_key] = header_value
end

-- finally, extract the body as a string by
Expand Down

0 comments on commit e1a84b4

Please sign in to comment.