Skip to content

Commit

Permalink
Fix TXT record encoding (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Bauer <mail@anderl-bauer.de>
  • Loading branch information
szekelyisz and Supereg committed Nov 27, 2023
1 parent c08e31c commit a7a4d66
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 a7a4d66

Please sign in to comment.