mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 07:31:07 +01:00
refactor: remove unused PassThrough stream import from httpin.js
This commit is contained in:
@@ -27,7 +27,6 @@ module.exports = function(RED) {
|
||||
var mediaTyper = require('media-typer');
|
||||
var isUtf8 = require('is-utf8');
|
||||
var hashSum = require("hash-sum");
|
||||
var PassThrough = require('stream').PassThrough;
|
||||
var rawDataRoutes = new Set();
|
||||
|
||||
/**
|
||||
@@ -119,7 +118,6 @@ module.exports = function(RED) {
|
||||
// Convert the request stream to buffer
|
||||
getBody(req, {
|
||||
length: req.headers['content-length'],
|
||||
encoding: typer.parse(req).parameters.charset
|
||||
}, function (err, buf) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
||||
Reference in New Issue
Block a user