rename Response Status into StatusMessage

This commit is contained in:
aler9
2020-05-08 23:36:05 +02:00
parent 6f72517d17
commit 7fece056dd
3 changed files with 16 additions and 16 deletions

View File

@@ -61,7 +61,7 @@ func NewAuthClient(header []string, user string, pass string) (*AuthClient, erro
}
// GenerateHeader generates an Authorization Header that allows to authenticate a request with
// the given method and path.
// the given method and url.
func (ac *AuthClient) GenerateHeader(method Method, ur *url.URL) []string {
ha1 := md5Hex(ac.user + ":" + ac.realm + ":" + ac.pass)
ha2 := md5Hex(string(method) + ":" + ur.String())