mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
The change is explaining itself
parent
ff0252861e
commit
543e151526
2
Home.md
2
Home.md
@ -27,7 +27,7 @@ var pool = new Pool()
|
||||
|
||||
http.createServer(function(req, res) {
|
||||
pool.query('SELECT $1::text as name', ['brianc'], function(err, result) {
|
||||
res.writeHead({'content-type': 'text/html'})
|
||||
res.writeHead(200, {'content-type': 'text/html'})
|
||||
res.end('Hello from: ' + result.rows[0].name)
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user