Commit c3b2c0a
committed
upstream: fix(systeminfo): make HTTPS URL scheme check case-insensitive for CA download (goharbor/harbor#23888)
Per RFC 3986, URL schemes are case-insensitive. In systeminfo controller, enableCADownload previously checked strings.HasPrefix(extURL, "https://") which failed when ExtEndpoint was configured with uppercase or mixed-case scheme (e.g., HTTPS://). Replace with strings.ToLower(extURL) to ensure case-insensitive scheme matching.
Fixes # NONE
Signed-off-by: Norway-02 <anshulkhetade02@gmail.com>
(cherry picked from commit 17b07334f943a32b94bf7306f46eb7348488e8ea)
Upstream-Commit: 17b07334f943a32b94bf7306f46eb7348488e8ea
Upstream-PR: goharbor/harbor#23888
Upstream-Author: @Norway-02
Cherry-Pick-Status: clean
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 51dda34 commit c3b2c0a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments