zohararad/sails-rest — pull request #25 by jasonsims (2014-11-19 03:30:50+00:00)
Title: Update connection example in README.md

This PR updates the example connection object within the readme to use `hostname` instead of `host`. The problem with using `host` is that any port number provided will be ignored which could cause confusion.

For example:
```js
url.format({
hostname: 'example.com',
port: 1337,
protocol: 'http'
})
// out: http://example.com:1337

url.format({
host: 'example.com',
port: 1337,
protocol: 'http'
})
// out: http://example.com
```