Modified client to allow buffer as a value for exop
This commit is contained in:
parent
fce043d6d0
commit
737009ee15
|
@ -454,8 +454,8 @@ Client.prototype.exop = function exop(name, value, controls, callback) {
|
||||||
controls = [];
|
controls = [];
|
||||||
value = '';
|
value = '';
|
||||||
}
|
}
|
||||||
if (typeof (value) !== 'string')
|
if (!(Buffer.isBuffer(value) || typeof (value) === 'string'))
|
||||||
throw new TypeError('value (string) required');
|
throw new TypeError('value (Buffer || string) required');
|
||||||
if (typeof (controls) === 'function') {
|
if (typeof (controls) === 'function') {
|
||||||
callback = controls;
|
callback = controls;
|
||||||
controls = [];
|
controls = [];
|
||||||
|
|
Loading…
Reference in New Issue