Fix CharsetReader creation.

Fixes #7
This commit is contained in:
Huin 2015-04-06 14:16:50 +01:00
parent 2ed6e64917
commit c57ae84388

View File

@ -106,7 +106,7 @@ func requestXml(url string, defaultSpace string, doc interface{}) error {
decoder := xml.NewDecoder(resp.Body)
decoder.DefaultSpace = defaultSpace
decoder.CharsetReader = charset.NewReaderByName
decoder.CharsetReader = charset.NewReaderLabel
return decoder.Decode(doc)
}