make generic response status optional

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 8817029258
commit 1ced1e977d
7 changed files with 7 additions and 19 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ export function generic(res: GenericResponse) {
const buf = Buffer.alloc(0x0020);
buf.writeInt16LE(0x0001, 0x0000);
buf.writeInt32LE(res.status, 0x0004);
buf.writeInt32LE(res.status || 0, 0x0004);
return buf;
}