|
@ -72,7 +72,6 @@ You can also make properly authenticated SSL requests by validating against the |
|
|
```js |
|
|
```js |
|
|
test(async t => { |
|
|
test(async t => { |
|
|
const server = await createTestServer({ certificate: 'foobar.com' }); |
|
|
const server = await createTestServer({ certificate: 'foobar.com' }); |
|
|
|
|
|
|
|
|
server.get('/foo', (req, res) => res.send('bar')); |
|
|
server.get('/foo', (req, res) => res.send('bar')); |
|
|
|
|
|
|
|
|
const response = await got(server.sslUrl + '/foo', { |
|
|
const response = await got(server.sslUrl + '/foo', { |
|
|