mirror of
https://github.com/aler9/gortsplib
synced 2025-10-11 01:50:30 +08:00
remove AuthClient
This commit is contained in:
@@ -31,7 +31,7 @@ func TestAuthMethods(t *testing.T) {
|
||||
authServer := NewAuthServer("testuser", "testpass", c.methods)
|
||||
wwwAuthenticate := authServer.GenerateHeader()
|
||||
|
||||
ac, err := NewAuthClient(wwwAuthenticate, "testuser", "testpass")
|
||||
ac, err := newAuthClient(wwwAuthenticate, "testuser", "testpass")
|
||||
require.NoError(t, err)
|
||||
authorization := ac.GenerateHeader(ANNOUNCE,
|
||||
&url.URL{Scheme: "rtsp", Host: "myhost", Path: "mypath"})
|
||||
@@ -47,7 +47,7 @@ func TestAuthBasePath(t *testing.T) {
|
||||
authServer := NewAuthServer("testuser", "testpass", []AuthMethod{Basic, Digest})
|
||||
wwwAuthenticate := authServer.GenerateHeader()
|
||||
|
||||
ac, err := NewAuthClient(wwwAuthenticate, "testuser", "testpass")
|
||||
ac, err := newAuthClient(wwwAuthenticate, "testuser", "testpass")
|
||||
require.NoError(t, err)
|
||||
authorization := ac.GenerateHeader(ANNOUNCE,
|
||||
&url.URL{Scheme: "rtsp", Host: "myhost", Path: "mypath/"})
|
||||
|
Reference in New Issue
Block a user