Skip to content

Commit

Permalink
Update scripts/fetch-iana.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ulises Gascón <[email protected]>
  • Loading branch information
bjohansebas and UlisesGascon authored Jan 6, 2025
1 parent 7cfbfe0 commit 99e9587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/fetch-iana.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ async function get (type, options) {
throw new Error('got status code ' + res.statusCode + ' from ' + type)
}

const mimes = await toArray(parser(await res.body.text()))
const responseText = await res.body.text();
const mimes = await toArray(parser(responseText));
var headers = mimes.shift().map(normalizeHeader)
var reduceRows = generateRowMapper(headers)
const results = []
Expand Down

0 comments on commit 99e9587

Please sign in to comment.