Skip to content

Add follow-redirect feature#469

Merged
XAMPPRocky merged 4 commits into
XAMPPRocky:mainfrom
smoelius:follow-redirect
Oct 15, 2023
Merged

Add follow-redirect feature#469
XAMPPRocky merged 4 commits into
XAMPPRocky:mainfrom
smoelius:follow-redirect

Conversation

@smoelius
Copy link
Copy Markdown
Contributor

Fixes #468

I am new to tower, so nits are more than welcome.

I made the new layer a configurable feature, since that seemed to be the pattern.

Also, I couldn't tell whether the layers were added in a particular order. I tried to add the new layer in a place that I thought made sense.

Comment thread tests/follow_redirect.rs
Comment on lines +58 to +59
#[tokio::test]
async fn should_return_page_with_users() {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
#[tokio::test]
async fn should_return_page_with_users() {
#[tokio::test]
#[cfg_attr(not(feature = "follow-redirect"), ignore)]
async fn should_return_page_with_users() {

@XAMPPRocky XAMPPRocky merged commit 9bfba30 into XAMPPRocky:main Oct 15, 2023
@XAMPPRocky
Copy link
Copy Markdown
Owner

Thank you for your PR, and congrats on your first contribution! 🎉

@smoelius smoelius deleted the follow-redirect branch October 15, 2023 15:03
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.

Follow redirects

2 participants