Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Commit bb704c7

Browse files
committed
updated README.md
1 parent 65b9e12 commit bb704c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ and by now the basic features should work.
1111
import dac "github.com/xinsnake/go-http-digest-auth-client"
1212

1313
// create a new digest authentication request
14-
dr := dac.NewRequest(userId, userId, method, endUri, payload)
14+
dr := dac.NewRequest(username, password, method, uri, payload)
1515
response1, err := dr.Execute()
1616

1717
// check error, get response
1818

1919
// reuse the existing digest authentication request so no extra request is needed
20-
dr.UpdateRequest(userId, userId, "PUT", endUri, string(buf.Bytes()))
20+
dr.UpdateRequest(username, password, method, uri, payload)
2121
response2, err := dr.Execute()
2222

2323
// check error, get response

0 commit comments

Comments
 (0)