@uxf/scripts 1.6.4 → 1.6.5
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/package.json +1 -1
- package/src/Sitemap.js +0 -1
- package/src/uxf-sitemap-check/index.js +1 -0
package/package.json
CHANGED
package/src/Sitemap.js
CHANGED
|
@@ -33,7 +33,6 @@ const axios = create({
|
|
|
33
33
|
maxRedirects: 0,
|
|
34
34
|
timeout: 20000,
|
|
35
35
|
httpsAgent: agent,
|
|
36
|
-
decompress: false,
|
|
37
36
|
headers: {
|
|
38
37
|
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
|
39
38
|
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
|
@@ -131,6 +131,7 @@ function createCorrectLinks(incorrectLinks, webUrl) {
|
|
|
131
131
|
async function fetchUrl(url, parentUrl = undefined, ttl = 1) {
|
|
132
132
|
try {
|
|
133
133
|
Sitemap.axios.defaults.maxRedirects = parentUrl ? 10 : 0;
|
|
134
|
+
Sitemap.axios.defaults.decompress = !parentUrl;
|
|
134
135
|
const encodedUrl = parentUrl ? encodeURI(decodeURI(url)) : url;
|
|
135
136
|
|
|
136
137
|
const t0 = performance.now();
|