From c57ae84388ab59076fd547f1abeab71c2edb0a21 Mon Sep 17 00:00:00 2001 From: Huin Date: Mon, 6 Apr 2015 14:16:50 +0100 Subject: [PATCH] Fix CharsetReader creation. Fixes #7 --- goupnp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goupnp.go b/goupnp.go index 9a63d73..8cd20c2 100644 --- a/goupnp.go +++ b/goupnp.go @@ -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) }