We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current code is as follows:
if (device.cbHost) { options.uri = 'http://' + device.cbHost + '/v2/subscriptions'; } else { options.uri = config.getConfig().contextBroker.url + '/v2/subscriptions'; }
while it should (probably) be:
if (device.cbHost && device.cbHost.indexOf('://') !== -1) { options.uri = device.cbHost + '/v2/subscriptions'; } else if (device.cbHost && device.cbHost.indexOf('://') === -1) { options.uri = 'http://' + device.cbHost + '/v2/subscriptions'; } else { options.uri = config.getConfig().contextBroker.url + '/v2/subscriptions'; }
The text was updated successfully, but these errors were encountered:
Is this issue as spinf of for #593 ?
Sorry, something went wrong.
yep but for ngsiv2, i am fix it and adding tests
No branches or pull requests
current code is as follows:
while it should (probably) be:
The text was updated successfully, but these errors were encountered: