Skip to content
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

Merged
merged 4 commits into from
Aug 22, 2014
Merged

Moving to module instead of cutomer buffer concatenation. #1008

merged 4 commits into from
Aug 22, 2014

Conversation

mikeal
Copy link
Member

@mikeal mikeal commented Aug 11, 2014

No description provided.

@mikeal
Copy link
Member Author

mikeal commented Aug 19, 2014

If nobody objects in the next 24 hours I'm going to merge this :)

@ghost
Copy link

ghost commented Aug 20, 2014

Fixed them thank you

i += chunk.length
})
if (buffer.length) {
debug('has body', self.uri.href)
Copy link
Contributor

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)

Copy link
Member Author

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.

Copy link

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.

mikeal added a commit that referenced this pull request Aug 22, 2014
Moving to  module instead of cutomer buffer concatenation.
@mikeal mikeal merged commit 063f733 into master Aug 22, 2014
nylen pushed a commit to nylen/request that referenced this pull request Oct 17, 2014
Moving to  module instead of cutomer buffer concatenation.
@reconbot reconbot deleted the bl branch November 23, 2018 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants