diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 4b859a154a2ec0..7e4d3073e9f212 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -391,7 +391,7 @@ function _writeRaw(data, encoding, callback, size) { } // TODO(sidwebworks): flip the `strictContentLength` default to `true` in a future PR - if (this.strictContentLength && size != null && conn && conn.writable && !this._removedContLen && this._hasBody) { + if (this.strictContentLength && size != null && !this._removedContLen && this._hasBody) { const skip = conn._httpMessage.statusCode === 304 || (this.hasHeader('transfer-encoding') || this.chunkedEncoding); if (typeof this._contentLength === 'number' && !skip) {