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

shared/api/url: Fix double path encoding issue #12407

Merged
merged 1 commit into from
Oct 18, 2023

Commits on Oct 18, 2023

  1. shared/api/url: Fix double path encoding issue

    Go's net.URL requires Path to be populated with unencoded path and
    RawPath to be populated with the hint on how we want Path to be
    encoded.
    
    This avoids double path encoding when calling url.EscapedPath(),
    which is used in url.String().
    
    Fixes canonical#12398
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    144a6c2 View commit details
    Browse the repository at this point in the history