Trim deviceId to remove extra spaces

merge-requests/1/head
Sameera Wickramasekara 7 years ago
parent 273cb989d4
commit 6b4f3d0373

@ -21,7 +21,7 @@ function onRequest(context) {
var devices = context.unit.params.devices; var devices = context.unit.params.devices;
var deviceType = context.uriParams.deviceType; var deviceType = context.uriParams.deviceType;
var deviceId = request.getParameter("deviceId"); var deviceId = request.getParameter("deviceId").trim();
if (devices) { if (devices) {
return { return {

Loading…
Cancel
Save