Skip to content

Commit

Permalink
fix(body): fix cloning consuming the body
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Aug 28, 2019
1 parent 3a9692d commit 8582046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Body {

clone () {
const clone = _super(this, 'clone')()
defineBuffer(clone, this.buffer())
defineBuffer(clone, Buffer.from(this[_body]))
return clone
}

Expand Down

0 comments on commit 8582046

Please sign in to comment.