mirror of https://github.com/vitalif/phantomjs
Increase maximum number of redirects in line with modern browsers.
Modern browser mostly limit re-directs to 20. The current limit in PhantomJS is 10 which is not in line with most browsers. This patch is a simple increase of gMaxRedirections from 10 to 20. http://code.google.com/p/phantomjs/issues/detail?id=8491.8
parent
f6a91a8813
commit
15fe514025
|
@ -45,7 +45,7 @@
|
|||
// for now, use this hackish solution for setting the internal attribute.
|
||||
const QNetworkRequest::Attribute gSynchronousNetworkRequestAttribute = static_cast<QNetworkRequest::Attribute>(QNetworkRequest::HttpPipeliningWasUsedAttribute + 7);
|
||||
|
||||
static const int gMaxRedirections = 10;
|
||||
static const int gMaxRedirections = 20;
|
||||
|
||||
namespace WebCore {
|
||||
|
||||
|
|
Loading…
Reference in New Issue