GithubHelp home page GithubHelp logo

Comments (6)

n4an avatar n4an commented on July 24, 2024 2

Is need to add such functions like:

res.removeHeader = (x) => {
return WTF;
}

res.getHeader = (x) => {
return WTF;
}

???

Use of something like this will help to have all methds??
var req =_.extend(options, require('express/lib/request');
var res = _.extend(options, require('express/lib/response'));

from node-run-middleware.

pedrozero-com avatar pedrozero-com commented on July 24, 2024

I just update my project and ended up in this same problem. Any solution? @Mitch-i solutions works.

from node-run-middleware.

Aminadav avatar Aminadav commented on July 24, 2024

If you wish the create a fix, I will review and merge it.

from node-run-middleware.

adityak74 avatar adityak74 commented on July 24, 2024

@Mitch-i @pedrovagner - Any updates on this one? I am facing the same error and it seems to not like 'vary' in the scope.

from node-run-middleware.

n4an avatar n4an commented on July 24, 2024

@Mitch-i @pedrovagner - Any updates on this one? I am facing the same error and it seems to not like 'vary' in the scope.

I not use that for a year.
Don't remember, but I make it to work.
Try in https://github.com/Aminadav/node-run-middleware/blob/master/index.js
to replace
var req =_.extend(options, require('express/lib/request');

var res = {
_removedHeader: {},
_statusCode: 200,
statusMessage: 'OK',
get statusCode() {
return this._statusCode
},
set statusCode(status) {
this._statusCode = status
this.status(status)
}
};

with

var res = _.extend(options, require('express/lib/response'));

from node-run-middleware.

adityak74 avatar adityak74 commented on July 24, 2024

Thanks @Mitch-i

from node-run-middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.