Skip to content

Commit

Permalink
fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
mreinstein committed Dec 17, 2016
1 parent c5d0f0f commit 3f44b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ module.exports = function gearman(host='127.0.0.1', port=4730, options={}) {
let _sendPacketS = function (packet_type, str) {
if (typeof(str) !== 'string')
throw new Error('parameter 1 must be a string');
payload = put().
let payload = put().
put(new Buffer(str, 'ascii')).
buffer();
_send(_encodePacket(packet_type, payload));
Expand All @@ -573,7 +573,7 @@ module.exports = function gearman(host='127.0.0.1', port=4730, options={}) {
let _sendPacketSB = function (packet_type, str, buf) {
if (!Buffer.isBuffer(buf))
buf = new Buffer('' + buf, 'utf8');
payload = put().
let payload = put().
put(new Buffer(str, 'ascii')).
word8(0).
put(buf).
Expand Down

0 comments on commit 3f44b84

Please sign in to comment.