Skip to content

docker host is trimmed too much in the docs - #317

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
kokes:kokes/http-trim
Sep 4, 2026
Merged

docker host is trimmed too much in the docs#317
andrew merged 1 commit into
git-pkgs:mainfrom
kokes:kokes/http-trim

Conversation

@kokes

@kokes kokes commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

When browsing the installation docs in the proxy UI, I noticed the Docker/OCI instructions had a weird trimming issue - "docker pull ackage-proxy..."

image

Turns out there was a rather rudimentary string slice that assumed https - but when hosted on http, this trims too much.

(I originally planned to parse via net/url, but that seems like overkill since there are only two schemes to consider here.)

(Also the test is a bit meh - feel free to drop it.)

@kokes
kokes marked this pull request as ready for review September 4, 2026 15:30
@andrew

andrew commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Good catch, thanks!

@andrew
andrew merged commit bb2205a into git-pkgs:main Sep 4, 2026
6 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