Skip to content

Doesn't hit req.on('data',...) #226

@RidiQirici

Description

@RidiQirici

Hi,
In my app.get or app.post methods when I try to use req.on('data', function(data){...}) or req.on('end', function(){...}), the debugging never gets there. Below is a part of the code:

app.post('/sample', passport.authenticate('basic', { session: false }), function (req, res) {
    var body = "";
    req.on('data', function (data) {
        body += data;
    });
    req.on('end', function () {

    });
    req.on('error', function (err) {

    });
});

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions