Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maxRedirects option #914

Merged
merged 1 commit into from Nov 2, 2019
Merged

Conversation

szmarczak
Copy link
Collaborator

Fixes #838

Checklist

  • I have read the documentation.
  • I have included a pull request description of my changes.
  • I have included some tests.
  • If it's a new feature, I have included documentation updates.

@@ -81,6 +81,20 @@ test('throws on endless redirects', withServer, async (t, server, got) => {
t.deepEqual(error.response.redirectUrls, new Array(10).fill(`${server.url}/`));
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider renaming the original test (above) to indicate it is now checking for default behavior.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot about it, will do.

@sindresorhus sindresorhus merged commit 0c505b0 into sindresorhus:master Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add maxRedirects option
3 participants