upnp: minor.

This commit is contained in:
Christopher Jeffrey 2017-07-02 13:39:21 -07:00
parent 3f3516ca18
commit 1b94d670c2
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -697,12 +697,12 @@ function findError(el) {
*/
function parseHost(uri) {
let data = url.parse(uri);
let {protocol, host} = url.parse(uri);
assert(data.protocol === 'http:' || data.protocol === 'https:',
assert(protocol === 'http:' || protocol === 'https:',
'Bad URL for location.');
return `${data.protocol}//${data.host}`;
return `${protocol}//${host}`;
}
function prependHost(host, uri) {