Skip to content

Commit

Permalink
dont throw on 404s when fetching templates from iana
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchurch committed Jan 4, 2025
1 parent 49f8df0 commit b9fdf85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fetch-iana.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function addTemplateData (data, options) {
return
}

let res = await got('https://www.iana.org/assignments/media-types/' + data.template)
let res = await got(`https://www.iana.org/assignments/media-types/${data.template}`, { throwHttpErrors: false })
var ref = data.type + '/' + data.name
var rfc = getRfcReferences(data.reference)[0]

Expand Down

0 comments on commit b9fdf85

Please sign in to comment.