Fixed potential case issue in correctEncoding(). As per issue#2.
This commit is contained in:
parent
c271c20e08
commit
c07619da34
|
@ -266,7 +266,7 @@ loop:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if enc == "utf-8" {
|
if strings.ToLower(enc) == "utf-8" {
|
||||||
// Data already in utf-8 format. Nothing to do here.
|
// Data already in utf-8 format. Nothing to do here.
|
||||||
return data, nil
|
return data, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue