Skip to content

Commit

Permalink
Use https instead of http as name in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mhart authored Aug 12, 2020
1 parent 7be5f7a commit d34f46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Example
-------

```javascript
var http = require('https')
var https = require('https')
var aws4 = require('aws4')

// to illustrate usage, we'll create a utility function to request and pipe to stdout
function request(opts) { http.request(opts, function(res) { res.pipe(process.stdout) }).end(opts.body || '') }
function request(opts) { https.request(opts, function(res) { res.pipe(process.stdout) }).end(opts.body || '') }

// aws4 will sign an options object as you'd pass to http.request, with an AWS service and region
var opts = { host: 'my-bucket.s3.us-west-1.amazonaws.com', path: '/my-object', service: 's3', region: 'us-west-1' }
Expand Down

0 comments on commit d34f46a

Please sign in to comment.