We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e3961 commit f59e10dCopy full SHA for f59e10d
scripts/postinstall.js
@@ -27,9 +27,7 @@ const getBinary = async url => {
27
: {}
28
let response = await fetch(url, headers)
29
30
- if (
31
- response.headers.get('content-type').includes('application/octet-stream')
32
- ) {
+ if (!response.headers.get('content-type') !== 'application/octet-stream') {
33
const payload = await response.json()
34
if (!response.ok) throw new Error(JSON.stringify(payload, null, 2))
35
response = await getLatest(payload)
0 commit comments