-
Notifications
You must be signed in to change notification settings - Fork 11
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
ignoreRedirects
fails due to missing host in the certificate's altname
#125
Comments
Always set valid HOST for `fetch`'s url. fix #125
* chore(deps): update textlint-script@3 * fix: avoid ERR_TLS_CERT_ALTNAME_INVALID when redirected url Always set valid HOST for `fetch`'s url. fix #125 * chore: remove log * test: --no-timeout * test: remove --no-timeout
https://github.com/textlint-rule/textlint-rule-no-dead-link/releases/tag/4.6.2 will fix this issue. |
Thanks @azu for the quick fix. I will try to test it out soon. I do have a question about the fix though. In the PR #126, if I'm not mistaken, I noticed the host name is being updated to the new URL that is being redirected to. I'm curious why we need to that in the first place. If I marked Did I mis-interpret the changes in that PR? |
@azu - When you get a chance, could you please clarify the above? ☝️ Thanks, |
Hi,
I was using the version
4.4.1
and trying to upgrade to the latest version (4.6.1
). After the upgrade, I'm getting the following link being reported as dead:https://www.consul.io/intro/getting-started/kv.html
The above link is being redirected to:
https://learn.hashicorp.com/consul/getting-started/kv.html
I already have
ignoreRedirects
totrue
and other links that are being redirected are ignored properly. The error returned by textlint is:When I use a curl command to test that link, I get a
301
redirect status code and no other errors:It seems the issue didn't exist when I was using version
4.4.1
.The text was updated successfully, but these errors were encountered: