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=849
1.8
David Burrows 2012-12-07 18:08:58 +00:00 committed by Ariya Hidayat
parent f6a91a8813
commit 15fe514025
1 changed files with 1 additions and 1 deletions

View File

@ -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 {