|
|
@ -243,7 +243,7 @@ export class Response {
|
|
|
|
await this.sending$.next(this)
|
|
|
|
await this.sending$.next(this)
|
|
|
|
|
|
|
|
|
|
|
|
if ( !(this.body instanceof Readable) ) {
|
|
|
|
if ( !(this.body instanceof Readable) ) {
|
|
|
|
this.setHeader('Content-Length', String((this.body?.length ?? 0) + 2))
|
|
|
|
this.setHeader('Content-Length', String(Buffer.from(this.body ?? '').length))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.setHeader('Date', (new Date()).toUTCString())
|
|
|
|
this.setHeader('Date', (new Date()).toUTCString())
|
|
|
|