Skip to content

Commit

Permalink
Merge pull request #2858 from boomfly/patch-1
Browse files Browse the repository at this point in the history
Update web3-providers readme
  • Loading branch information
nivida authored May 30, 2019
2 parents e485119 + 64613ea commit 15bb3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web3-providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ Instead of setting a authorization header you could also define the credentials

```js
import {WebsocketProvider} from 'web3-providers';
const credentials = Buffer.from('username:password').toString('base64')
const options = {
timeout: 30000,
headers: {
authorization: 'Basic username:password'
authorization: `Basic ${credentials}`
}
};

Expand Down

0 comments on commit 15bb3a4

Please sign in to comment.