Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Deprecated express method #18

Open
hobbe opened this issue Feb 3, 2017 · 1 comment
Open

Deprecated express method #18

hobbe opened this issue Feb 3, 2017 · 1 comment

Comments

@hobbe
Copy link

hobbe commented Feb 3, 2017

node-php is using a deprecated express method.

express deprecated res.send(body, status): Use res.status(status).send(body) instead node_modules\node-php\main.js:115:13                       
express deprecated res.sendfile: Use res.sendFile instead node_modules\node-php\main.js:120:12                                                  
@zoranmil
Copy link

relace
response.send(html, response.statusCode);
to
response.status(response.statusCode).send(html)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants