Skip to content

Commit

Permalink
feat: changed user agent to latest chrome (#121)
Browse files Browse the repository at this point in the history
* feat: changed user agent to latest chrome

* removed dead link
  • Loading branch information
adampash authored Jan 26, 2017
1 parent 7709d69 commit 8662474
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions scripts/check-build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import assert from 'assert';
import cheerio from 'cheerio';

let urls = [
{
url: 'https://bordeltabernacle.github.io/2016/01/04/notes-on-elixir-pattern-matching-maps.html',
title: 'Notes on Elixir: Pattern-Matching Maps',
},
{
url: 'http://www.cnn.com/2016/11/05/middleeast/iraq-mosul-isis-offensive/',
title: 'Iraqi troops storm town south of Mosul',
Expand Down
2 changes: 1 addition & 1 deletion src/resource/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import cheerio from 'cheerio';

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

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

0 comments on commit 8662474

Please sign in to comment.