--- a/vendor/github.com/magiconair/properties/load.go Mon Jun 07 20:58:18 2021 +0200
+++ b/vendor/github.com/magiconair/properties/load.go Sun Jul 11 10:35:56 2021 +0200
@@ -132,11 +132,12 @@
}
ct := resp.Header.Get("Content-Type")
+ ct = strings.Join(strings.Fields(ct), "")
var enc Encoding
switch strings.ToLower(ct) {
- case "text/plain", "text/plain; charset=iso-8859-1", "text/plain; charset=latin1":
+ case "text/plain", "text/plain;charset=iso-8859-1", "text/plain;charset=latin1":
enc = ISO_8859_1
- case "", "text/plain; charset=utf-8":
+ case "", "text/plain;charset=utf-8":
enc = UTF8
default:
return nil, fmt.Errorf("properties: invalid content type %s", ct)