Skip to content

Commit 68e077a

Browse files
committed
Final newline is optional
1 parent fc3303c commit 68e077a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/node/src/transports/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const GZIP_THRESHOLD = 1024 * 32;
3030

3131
/**
3232
* Gets a stream from a Uint8Array or string
33-
* Readable.from was added in node.sj v12.3.0, v10.17.0
33+
* Readable.from was added in node.js v12.3.0 and v10.17.0
3434
*/
3535
function streamFromBody(body: Uint8Array | string): Readable {
3636
return new Readable({

packages/utils/src/envelope.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ export function serializeEnvelope(envelope: Envelope, textEncoder?: TextEncoderI
6868
append(typeof payload === 'string' || payload instanceof Uint8Array ? payload : JSON.stringify(payload));
6969
}
7070

71-
append('\n');
72-
7371
return typeof parts === 'string' ? parts : concatBuffers(parts);
7472
}
7573

0 commit comments

Comments
 (0)