hexo-swpp 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -122,7 +122,7 @@ const getJsonFromNetwork = async path => {
|
|
|
122
122
|
headers: {
|
|
123
123
|
referer: new URL(url).hostname,
|
|
124
124
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62',
|
|
125
|
-
'accept-encoding':
|
|
125
|
+
'accept-encoding': 'deflate'
|
|
126
126
|
}
|
|
127
127
|
})
|
|
128
128
|
if (result.status < 200 || result.status >= 400 || !result.data)
|