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

Support for HTTPS scheme #134

Open
bizz84 opened this issue Jul 10, 2024 · 2 comments
Open

Support for HTTPS scheme #134

bizz84 opened this issue Jul 10, 2024 · 2 comments

Comments

@bizz84
Copy link

bizz84 commented Jul 10, 2024

My localhost site is hosted on https:

linkcheck https://localhost:4321/

However, when I run the tool, I get this:

Done crawling.                   

Provided URLs failing:
https://localhost:4321/ (connection failed)

Error. Couldn't connect or find any links. Have you started the server?

Is it possible to enable https on localhost?

@filiph
Copy link
Owner

filiph commented Jul 10, 2024

Hmm, to be honest, I don't even know how big of change this would be. Does Dart support HTTPS natively? I'll have to investigate. Also, any help would be greatly appreciated, as I'm currently not focusing on this package.

@bizz84
Copy link
Author

bizz84 commented Jul 10, 2024

I did a bit of debugging and found out that this getter returns true because my statusCode is null:

  bool get isBroken =>
      statusCode != 200 && !wasDeniedByRobotsTxt && !isUnsupportedScheme;

Oddly, this works fine if I point to a non-localhost URL.

I'll report back if I get a chance to look closer.

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

No branches or pull requests

2 participants