Comparing version 0.2.4 to 0.2.5
@@ -6,3 +6,4 @@ var Gateway = require('./gateway'), | ||
url_parse = require('url').parse, | ||
utils = require('./utils'); | ||
utils = require('./utils'), | ||
inspect = require('util').inspect; | ||
@@ -41,6 +42,10 @@ var gw, | ||
var mapping; | ||
var soap_body = res['s:Envelope']['s:Body']; | ||
var prefixes = ['u:', 'm:']; // some routers use m: as prefix, unlike most | ||
var mapping, | ||
prefixes = ['u:', 'm:'], // some routers use m: as prefix, unlike most | ||
envelope = res['s:Envelope']; | ||
var soap_body = envelope && envelope['s:Body']; | ||
if (!soap_body) | ||
return cb(new Error("Couldn't find soap body in: " + inspect(res))); | ||
for (var i in prefixes) { | ||
@@ -47,0 +52,0 @@ var type = prefixes[i] + type_key; |
{ | ||
"name": "entry", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "UPnP library that works.", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
Sorry, the diff of this file is not supported yet
24082
16
742
4