Ready to Merge

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 14:30:31 +01:00
1 parent a4ed878fcd
commit 6318a27dde
4508 files changed

No files matched your search

-17
View File
@@ -1,17 +0,0 @@
'use strict';
const PassThrough = require('stream').PassThrough;
const mimicResponse = require('mimic-response');
const cloneResponse = response => {
if (!(response && response.pipe)) {
throw new TypeError('Parameter `response` must be a response stream.');
}
const clone = new PassThrough();
mimicResponse(response, clone);
return response.pipe(clone);
};
module.exports = cloneResponse;