Skip to content

Commit

Permalink
fix: add case-insensitive content-type header detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Mar 14, 2024
1 parent 4d4e4ff commit 89ea4d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/hurl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ local function execute_hurl_cmd(opts, callback)

local content_type = response.headers['content-type']
or response.headers['Content-Type']
or response.headers['Content-type']
or 'unknown'

utils.log_info('Detected content type: ' .. content_type)
Expand Down

0 comments on commit 89ea4d4

Please sign in to comment.