Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 3e3fa4b

Browse files
author
John Johnston
committed
fix: client.add not adding buffers properly
Fixed while getting AD thumbnailPhoto to work.
1 parent 91de94d commit 3e3fa4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/client/client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ Client.prototype.add = function add (name, entry, controls, callback) {
238238
save[k].forEach(function (v) {
239239
attr.addValue(v.toString())
240240
})
241+
} else if (Buffer.isBuffer(save[k])) {
242+
attr.addValue(save[k]);
241243
} else {
242244
attr.addValue(save[k].toString())
243245
}

0 commit comments

Comments
 (0)