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

fix: dont force trailing url slash #25

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Jan 5, 2024

ref foundry-rs/foundry#6079

previously we were always adding a trailing / to the API URL resulting in cloudfare issues with certain API calls.

the alloy-chan now never include a trialing slash so this is no longer necessary.
instead of format!(url/api) we're now using url.join which takes care of adding missing /

this can then be removed in foundry

https://github.com/foundry-rs/foundry/blob/6fc74638b797b8e109452d3df8e26758f86f31fe/crates/forge/bin/cmd/verify/etherscan/mod.rs#L272-L272

Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

alloy-chan

👉👈

@mattsse mattsse merged commit 01b73f0 into main Jan 5, 2024
8 checks passed
@DaniPopes DaniPopes deleted the matt/fix-dont-force-trailing-slash branch May 4, 2024 12:12
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.

2 participants