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 HTTP::Request deprecations #1367

Merged
merged 3 commits into from
Dec 23, 2020

Conversation

bcardiff
Copy link
Contributor

Ref: crystal-lang/crystal#10029

There is also a related change in a dependency at crystal-loot/exception_page#18

These changes keep compatibility with Crystal 0.35

Although HTTP::Request#hostname is the suggested replacement in the deprecation, changing the scheme of the URI is what is wanted. Using hostname will unwrap ipv6 hosts.
URI#hostname is used to unwrap ipv6 in the same way HTTP::Request#hostname will
Copy link
Member

@matthewmcgarvey matthewmcgarvey left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

@matthewmcgarvey matthewmcgarvey merged commit 3e0fdd2 into luckyframework:master Dec 23, 2020
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