-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving to module instead of cutomer buffer concatenation. #1008
Conversation
If nobody objects in the next 24 hours I'm going to merge this :) |
Fixed them thank you |
i += chunk.length | ||
}) | ||
if (buffer.length) { | ||
debug('has body', self.uri.href) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this debug message correct? (body != uri.href)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually don't know when this originally came from.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
On Aug 22, 2014 2:03 AM, "Fred K. Schott" notifications@github.com wrote:
In request.js:
@@ -1015,26 +1017,22 @@ Request.prototype.onResponse = function (response) {
return
}
if (buffer.length && Buffer.isBuffer(buffer[0])) {
debug('has body', self.uri.href, bodyLen)
var body = new Buffer(bodyLen)
var i = 0
buffer.forEach(function (chunk) {
chunk.copy(body, i, 0, chunk.length)
i += chunk.length
})
if (buffer.length) {
debug('has body', self.uri.href)
is this debug message correct? (body != uri.href)
Reply to this email directly or view it on GitHub
https://github.com/mikeal/request/pull/1008/files#r16574603.
Moving to module instead of cutomer buffer concatenation.
Moving to module instead of cutomer buffer concatenation.
No description provided.