make generic response status optional
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user