Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Update express.js example for nano 6 and express 4 #328

Merged
merged 1 commit into from
May 16, 2016

Conversation

pmanijak
Copy link
Contributor

@pmanijak pmanijak commented May 9, 2016

This is a pull request to fix Issue #327

There were a few places where this file was out of date.

Express 4:

  • express.createServer() has been deprecated
  • passing the status via send() has been deprecated
  • convention is to use 'req' and 'res' instead of
    'request' and 'response'

Nano 6:

  • error['status-code'] is now error.statusCode

Also there was a syntax error (too many curly braces), and expressjs.org no longer exists / it is expressjs.com.

There were a few places where this file was out of date.

Express 4:
* express.createServer() has been deprecated
* passing the status via send() has been deprecated
* convention is to use 'req' and 'res' instead of 
  'request' and 'response'  

Nano 6:
* error['status-code'] is now error.statusCode

Also there was a syntax error (too many curly braces).
@jo jo merged commit 9ddc649 into apache:master May 16, 2016
@jo
Copy link
Contributor

jo commented May 16, 2016

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants