cloudhead/cradle — pull request #176 by mluckeneder (2012-07-01 14:06:39+00:00)
Title: Fix for "Connecting with authentication and SSL"

Opening a secure connection without specifying the "https://" in the hostname but using the "secure" option is shown in the Readme:

``` js
var connection = new(cradle.Connection)('couch.io', 443, {
secure: true,
auth: { username: 'john', password: 'fha82l' }
});
```

This, however, results in an SSL error. E.g.

```
[Error: 140735249709408:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:766:]
```

This will now work without any errors.