In the More about streams section, the request lib can also pipe the request headers, but looks like got won't do that, so the words could be more specific that got will only proxy response headers(at least for now) instead of both request and response headers.
szmarczak earned $80.00 by resolving this issue!
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on Issuehunt to raise funds.
You can easily do that using req.pipe(got(url, {headers: req.headers})).pipe(res). Right, we should document this.
@sindresorhus Should this be the default behavior?
Yeah
@issuehunt has funded $80.00 to this issue.
@sindresorhus has rewarded $72.00 to @szmarczak. See it on IssueHunt
Most helpful comment
Yeah