fix: client.add not adding buffers properly
Fixed while getting AD thumbnailPhoto to work.
This commit is contained in:
parent
91de94d1a6
commit
3e3fa4ba12
|
@ -238,6 +238,8 @@ Client.prototype.add = function add (name, entry, controls, callback) {
|
|||
save[k].forEach(function (v) {
|
||||
attr.addValue(v.toString())
|
||||
})
|
||||
} else if (Buffer.isBuffer(save[k])) {
|
||||
attr.addValue(save[k]);
|
||||
} else {
|
||||
attr.addValue(save[k].toString())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue