aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/github.com')
-rw-r--r--Godeps/_workspace/src/github.com/huin/goupnp/goupnp.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/huin/goupnp/goupnp.go b/Godeps/_workspace/src/github.com/huin/goupnp/goupnp.go
index 120b92444..8cd20c2f4 100644
--- a/Godeps/_workspace/src/github.com/huin/goupnp/goupnp.go
+++ b/Godeps/_workspace/src/github.com/huin/goupnp/goupnp.go
@@ -20,6 +20,8 @@ import (
"net/http"
"net/url"
+ "golang.org/x/net/html/charset"
+
"github.com/huin/goupnp/httpu"
"github.com/huin/goupnp/ssdp"
)
@@ -104,6 +106,7 @@ func requestXml(url string, defaultSpace string, doc interface{}) error {
decoder := xml.NewDecoder(resp.Body)
decoder.DefaultSpace = defaultSpace
+ decoder.CharsetReader = charset.NewReaderLabel
return decoder.Decode(doc)
}