Skip to content

Investigate only piping the payload after a connection is established #222

@geek

Description

@geek

Relates to

wreck/lib/index.js

Lines 303 to 322 in 576ce9d

if (payloadSupported) {
if (options.payload instanceof Stream) {
let stream = options.payload;
if (redirects) {
const collector = new Tap();
collector.once('finish', () => {
shadow = collector.collect();
});
stream = options.payload.pipe(collector);
}
stream.pipe(req);
return req;
}
req.write(options.payload);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug or defect

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions