summaryrefslogtreecommitdiff
path: root/plugin/maxmind
diff options
context:
space:
mode:
authorLoyalsoldier <[email protected]>2024-07-02 15:05:46 +0800
committerLoyalsoldier <[email protected]>2024-07-04 15:26:54 +0800
commit8634253edb8dcd79b7e6e6e097d598d0da11df57 (patch)
treee068c011d886dd72bf2c4365c2eeb2ca10b0c152 /plugin/maxmind
parent7effab8525352b3d8f0daa4c3f1bcd407df32dc9 (diff)
Fix: make URI matching case-insensitive
Diffstat (limited to 'plugin/maxmind')
-rw-r--r--plugin/maxmind/mmdb_in.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/maxmind/mmdb_in.go b/plugin/maxmind/mmdb_in.go
index e451e6dc..eef4c7d6 100644
--- a/plugin/maxmind/mmdb_in.go
+++ b/plugin/maxmind/mmdb_in.go
@@ -85,7 +85,7 @@ func (g *maxmindMMDBIn) Input(container lib.Container) (lib.Container, error) {
var fd io.ReadCloser
var err error
switch {
- case strings.HasPrefix(g.URI, "http://"), strings.HasPrefix(g.URI, "https://"):
+ case strings.HasPrefix(strings.ToLower(g.URI), "http://"), strings.HasPrefix(strings.ToLower(g.URI), "https://"):
fd, err = g.downloadFile(g.URI)
default:
fd, err = os.Open(g.URI)