Skip to content

Commit c0644b7

Browse files
author
Prince Rachit Sinha
committed
[image-builder] Split auth string into only two
1 parent 98e72ab commit c0644b7

File tree

1 file changed

+1
-1
lines changed
  • components/image-builder-bob/pkg/proxy

1 file changed

+1
-1
lines changed

components/image-builder-bob/pkg/proxy/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (a MapAuthorizer) Authorize(host string) (user, pass string, err error) {
4242
if err != nil {
4343
return
4444
}
45-
segs := strings.Split(string(auth), ":")
45+
segs := strings.SplitN(string(auth), ":", 1)
4646
if len(segs) < 2 {
4747
return
4848
}

0 commit comments

Comments
 (0)