-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of permanent redirect detection
For some reason, the code assumed that the fetch API would not follow permanent redirects. The fetch API follows redirects by default and that's a good thing as requests on the `/specifications/[shortname]/versions/latest` API endpoint typically return a 302 to the actual version that is the current latest version. This update rather relies on the `redirected` flag to detect redirects and checks the final URL to see whether the W3C API knows the spec under a different shortname.
- Loading branch information
Showing
2 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters