Fixed Upnp bug

This commit is contained in:
obscuren
2014-05-01 22:14:20 +02:00
parent e6a68f0c3a
commit 91aa189ef3
2 changed files with 5 additions and 1 deletions

View File

@ -246,6 +246,10 @@ func soapRequest(url, function, message string) (r *http.Response, err error) {
//fmt.Println(fullMessage)
r, err = http.DefaultClient.Do(req)
if err != nil {
return
}
if r.Body != nil {
defer r.Body.Close()
}