Skip to content

Commit

Permalink
Update HTTPBinding.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored Oct 19, 2023
1 parent e535ba5 commit fe3fc23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bindings/HTTPBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function parseData(req, res, next) {
// This is just for log data
data = data.toString('hex');
} catch (e) {
// no error should be reported
}
}
config.getLogger().debug(context, 'Parsed data: %j', data);
Expand Down Expand Up @@ -300,6 +301,7 @@ function handleIncomingMeasure(req, res, next) {
try {
req.jsonPayload = req.jsonPayload.toString('hex');
} catch (e) {
// no error should be reported
}
const theAttr = [{ name: req.attr, value: req.jsonPayload, type: 'None' }];
attributeArr.push(theAttr);
Expand Down

0 comments on commit fe3fc23

Please sign in to comment.