Skip to content

Commit 8662474

Browse files
authored
feat: changed user agent to latest chrome (#121)
* feat: changed user agent to latest chrome * removed dead link
1 parent 7709d69 commit 8662474

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

scripts/check-build.test.js

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import assert from 'assert';
33
import cheerio from 'cheerio';
44

55
let urls = [
6-
{
7-
url: 'https://bordeltabernacle.github.io/2016/01/04/notes-on-elixir-pattern-matching-maps.html',
8-
title: 'Notes on Elixir: Pattern-Matching Maps',
9-
},
106
{
117
url: 'http://www.cnn.com/2016/11/05/middleeast/iraq-mosul-isis-offensive/',
128
title: 'Iraqi troops storm town south of Mosul',

src/resource/utils/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import cheerio from 'cheerio';
22

33
// Browser does not like us setting user agent
44
export const REQUEST_HEADERS = cheerio.browser ? {} : {
5-
'User-Agent': 'Mercury - https://mercury.postlight.com/web-parser/',
5+
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36',
66
};
77

88
// The number of milliseconds to attempt to fetch a resource before timing out.

0 commit comments

Comments
 (0)