Skip to content

Commit

Permalink
fix(fetch): remove unnecessary encode operation (nodejs#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Apr 4, 2023
1 parent 2c4c5e4 commit 160d8ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fetch/body.js
Expand Up @@ -130,7 +130,8 @@ function extractBody (object, keepalive = false) {

yield * value.stream()

yield enc.encode('\r\n')
// '\r\n' encoded
yield new Uint8Array([13, 10])
}
}

Expand Down

0 comments on commit 160d8ee

Please sign in to comment.