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

Add trailing / to ubuntu: and ubuntu-daily: remotes to avoid redirects #14169

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

simondeziel
Copy link
Member

Of the 4 builtin remotes, 2 don't have a trailing /:

$ lxc remote list -f csv | awk -F, '/^ubuntu/ {print $2}' | grep -v /$
https://cloud-images.ubuntu.com/releases
https://cloud-images.ubuntu.com/daily

They should probably have one to avoid a permanent redirection (301):

$ wget -qSO /dev/null https://cloud-images.ubuntu.com/releases 2>&1 | grep -E 'HTTP/|Location'
  HTTP/1.1 301 Moved Permanently
  Location: https://cloud-images.ubuntu.com/releases/
  HTTP/1.1 200 OK

$ wget -qSO /dev/null https://cloud-images.ubuntu.com/daily 2>&1 | grep -E 'HTTP/|Location'
  HTTP/1.1 301 Moved Permanently
  Location: https://cloud-images.ubuntu.com/daily/
  HTTP/1.1 200 OK

@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API labels Sep 26, 2024
Copy link

Heads up @mionaalex - the "Documentation" label was applied to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes to the REST API Documentation Documentation needs updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant