Skip to content

Commit

Permalink
Merge branch 'master' of github.com:binux/pyspider
Browse files Browse the repository at this point in the history
  • Loading branch information
binux committed Jan 9, 2016
2 parents febc155 + 169fe4f commit 3d0d440
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyspider/fetcher/phantomjs_fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if (system.args.length !== 2) {
width: fetch.js_viewport_width || 1024,
height: fetch.js_viewport_height || 768*3
}
if (fetch.headers) {
fetch.headers['Accept-Encoding'] = undefined;
fetch.headers['Connection'] = undefined;
fetch.headers['Content-Length'] = undefined;
}
if (fetch.headers && fetch.headers['User-Agent']) {
page.settings.userAgent = fetch.headers['User-Agent'];
}
Expand Down

0 comments on commit 3d0d440

Please sign in to comment.