Skip to content

Commit

Permalink
Fix TXT record encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
szekelyisz committed Nov 23, 2023
1 parent 661a0eb commit 323901f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coder/records/TXTRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class TXTRecord extends ResourceRecord {
super(name);
}

this.txt = txt;
this.txt = txt.length === 0 ? [Buffer.from([])] : txt;
}

protected getRDataEncodingLength(): number {
Expand Down

0 comments on commit 323901f

Please sign in to comment.