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

Bugfix/json map full urls #7

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

tystuyfzand
Copy link
Contributor

Fixes the JSON mapping by removing the full URL scheme/host. By passing a full URL, we're simply pushing it to another redirector instance and ignoring the redirector's logic, which would require rewriting the redirection handler to efficiently handle.

This is the simpler of the two patches, as long as the server list is maintained on redirect.armbian.com as well as dl.armbian.com this will return the same results, without the extra redirect.

- Fixes JSON mapping to use only paths, preserving redirector functionality
- Fixes tests, removes excess debugging from tests
- Fixes khadas-vim4 and other images with a prefix before img.xz
@igorpecovnik igorpecovnik merged commit c8c81b3 into armbian:master Jan 30, 2024
2 checks passed
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