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

Skip unsupported schemes #236

Merged
merged 3 commits into from
Apr 26, 2021
Merged

Skip unsupported schemes #236

merged 3 commits into from
Apr 26, 2021

Conversation

mre
Copy link
Member

@mre mre commented Apr 26, 2021

Fixes #199

@@ -42,6 +42,10 @@ impl ResponseStats {

pub(crate) fn add(&mut self, response: Response) {
let Response(source, ResponseBody { ref status, .. }) = response;
if status.is_unsupported() {
// Silently skip unsupported URIs for now
Copy link
Member

Choose a reason for hiding this comment

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

You can add a TODO: or FIXME: keyword

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe I should remove the "for now" part, because I think it's a permanent thing. If we don't support a URI, we just ignore it.

Copy link
Member

Choose a reason for hiding this comment

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

right.

So we currently support HTTP(s) and MAILTO? FILE?

It's nice to add them to readme.

Copy link
Member Author

Choose a reason for hiding this comment

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

yup

@@ -51,6 +55,7 @@ impl ResponseStats {
Status::Timeout(_) => self.timeouts += 1,
Status::Redirected(_) => self.redirects += 1,
Status::Excluded => self.excludes += 1,
Status::Unsupported(_) => (), // Just skip unsupported URI
Copy link
Member

Choose a reason for hiding this comment

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

Same as above. TODO: or FIXEME:

@mre mre merged commit f8426ba into master Apr 26, 2021
@mre mre deleted the schemes branch April 26, 2021 15:16
MichaIng added a commit to MichaIng/DietPi-Website that referenced this pull request Jun 9, 2021
until next lychee release which contains lycheeverse/lychee#236.

Try to fix verbose flag by moving it before options.
MichaIng added a commit to MichaIng/DietPi-Website that referenced this pull request Jun 10, 2021
This requires to spin up a local webserver to be able to check internal links. The GitHub actions virtual machines come with Apache2 and Nginx on board, so we can configure and start Nginx.

Additionally migrate to new Java setup action and version for v.Nu.

Exclude "chrome://gpu" until next lychee release which contains lycheeverse/lychee#236.
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.

Silently ignore unsupported schemes
2 participants