File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " uquik" ,
3- "version" : " 1.0.32 " ,
3+ "version" : " 1.0.33 " ,
44 "description" : " uQuik HTTP(S) framework" ,
55 "main" : " index.js" ,
66 "scripts" : {
4444 "eslint-plugin-promise" : " ^6.0.0" ,
4545 "nanobench" : " ^2.1.1"
4646 }
47- }
47+ }
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ class Response extends Writable {
396396 // Attempt to stream the chunk using appropriate uWS.Response chunk serving method
397397 // This will depend on whether a total_size is specified or not
398398 let sent , finished
399- const lastOffset = this . write_offset
399+ const lastOffset = this . raw_response . getWriteOffset ( )
400400 if ( totalSize ) {
401401 // Attempt to stream the current chunk using uWS.tryEnd with a total size
402402 const [ ok , done ] = this . raw_response . tryEnd ( chunk , totalSize )
@@ -616,15 +616,6 @@ class Response extends Writable {
616616 }
617617 }
618618
619- /**
620- * Returns the current response body content write offset in bytes.
621- * Use in conjunction with the drain() offset handler to retry writing failed chunks.
622- * @returns {Number }
623- */
624- get write_offset ( ) {
625- return this . completed ? - 1 : this . raw_response . getWriteOffset ( )
626- }
627-
628619 /* ExpressJS compatibility properties & methods */
629620
630621 /**
You can’t perform that action at this time.
0 commit comments