Wes Todd

Results 397 comments of Wes Todd

The above will most likely not work as you want it. This would result in a race condition between incoming requests. At the moment I think your best bet is...

You could do something simple like: ``` function sendPrettyJson (req, res, value) { this.set('Content-Type', 'application/json') var body = req.query['pretty_output'] ? JSON.stringify(value, null, 2) : JSON.stringify(value) res.send(body) } ```

There is a generic need for this, and I believe there are some issues open for this. I am at work right now and so cant dig for them, but...

Same, I could not find it either. I think we should add this to the `5.x` road map. It should be simple enough to pass `req`/`res` to those places, and...

@rileyjshaw, I think it would be best to start with printing a deprecation warning when trying to access `req.headers.referrer` if it was set. That would probably be what we would...

Preferably more like this: https://github.com/expressjs/express/blob/master/lib/application.js#L512

For reference: #3427 My opinion on this is stated there, but both of these PR's are failing tests, so this might not be an acceptable change until we update the...

@dougwilson It appears I am still unable to add the proper tags here. Is there a permission you need to give me?

I believe that was the intent behind creating this repo: https://github.com/pillarjs/views I am unsure what why this was not done, but maybe @dougwilson would remember.

This seems like a good addition to me. I would like a few more people opinion before we decide what to do with this for sure. But in general it...