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

RF: standardise the way url param is handled #26

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

kynrai
Copy link
Collaborator

@kynrai kynrai commented Jun 10, 2024

No description provided.

@kynrai kynrai requested a review from Lissy93 as a code owner June 10, 2024 01:56
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

Attention: Patch coverage is 68.62745% with 32 lines in your changes missing coverage. Please review.

Flag Coverage Δ
unittests 54.25% <68.62%> (+0.89%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
handlers/block_lists.go 95.00% <100.00%> (+9.08%) ⬆️
handlers/cookies.go 23.86% <100.00%> (-1.70%) ⬇️
handlers/dns.go 91.02% <100.00%> (-0.74%) ⬇️
handlers/dns_server.go 78.43% <100.00%> (-1.20%) ⬇️
handlers/dnssec.go 64.70% <100.00%> (+5.88%) ⬆️
handlers/firewall.go 32.87% <100.00%> (-0.46%) ⬇️
handlers/headers.go 86.95% <100.00%> (-1.51%) ⬇️
handlers/ports.go 80.59% <100.00%> (-0.84%) ⬇️
handlers/rank.go 73.33% <100.00%> (-1.27%) ⬇️
handlers/redirects.go 72.72% <100.00%> (-2.28%) ⬇️
... and 14 more


resp, err := http.Get(fullURL)
// TODO(Lissy93): does this test require we set scheme to http?
resp, err := http.Get(url)
Copy link
Member

Choose a reason for hiding this comment

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

It just needs some protocol, whether http or https.
But that's now already covered by urlutils

Copy link
Member

@Lissy93 Lissy93 left a comment

Choose a reason for hiding this comment

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

Looks awesome 🙌

@Lissy93 Lissy93 merged commit bfeb9b2 into main Jun 10, 2024
3 checks passed
@kynrai kynrai deleted the rf/standardise_url_param branch June 10, 2024 12:07
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