allow null txt records
This commit is contained in:
parent
73df75ad39
commit
00b27da6cc
2
index.js
2
index.js
@ -171,6 +171,8 @@ rtxt.encode = function (data, buf, offset) {
|
|||||||
if (!offset) offset = 0
|
if (!offset) offset = 0
|
||||||
|
|
||||||
if (typeof data === 'string') data = Buffer(data)
|
if (typeof data === 'string') data = Buffer(data)
|
||||||
|
if (!data) data = Buffer(0)
|
||||||
|
|
||||||
var oldOffset = offset
|
var oldOffset = offset
|
||||||
offset += 2
|
offset += 2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user