Skip to content

Commit 215d5d9

Browse files
Update https.js
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 6c6d170 commit 215d5d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/https.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function establishTunnel(agent, socket, options, tunnelConfig, afterSocket) {
244244
// clean up the socket and return an error. Otherwise we establish the tunnel.
245245
let buffer;
246246
function onProxyData(chunk) {
247-
debug('onProxyData', chunk.toString());
247+
debug('onProxyData', chunk.length);
248248
buffer = buffer === undefined ? chunk :
249249
Buffer.concat([buffer, chunk], buffer.length + chunk.length);
250250
const headerEndIndex = buffer.indexOf('\r\n\r\n');

0 commit comments

Comments
 (0)