add test and patch for the https://github.com/spatie/crawler/issues/271
This commit is contained in:
@@ -16,6 +16,7 @@ app.get('/', function (request, response) {
|
||||
' <li><a href="/redirectLoop">redirectLoop</a></li>',
|
||||
' <li><a href="/timeout">timeout</a></li>',
|
||||
' <li><a href="/internalServerError">internalServerError</a></li>',
|
||||
' <li><a href="/invalidStatusCode">invalidStatusCode</a></li>',
|
||||
' <li><a href="/twoRedirectsToSameLocation">twoRedirectsToSameLocation</a></li>',
|
||||
' <li><a href="mailto:test@example.com">mailto</a></li>',
|
||||
' <li><a href="tel:+4412345678">tel</a></li>',
|
||||
@@ -78,6 +79,10 @@ app.get('/internalServerError', function (request, response) {
|
||||
response.status(500).end();
|
||||
});
|
||||
|
||||
app.get('/invalidStatusCode', function (request, response) {
|
||||
response.status(999).end();
|
||||
});
|
||||
|
||||
app.get('/interlinked1', function (request, response) {
|
||||
response.end('<a href="/interlinked1">1</a><a href="/interlinked2">2</a><a href="/interlinked3">3</a>');
|
||||
});
|
||||
|
Reference in New Issue
Block a user