diff --git a/auth-server_test.go b/auth-server_test.go index e32d7526..49579b12 100644 --- a/auth-server_test.go +++ b/auth-server_test.go @@ -12,8 +12,8 @@ func TestAuthClientServer(t *testing.T) { ac, err := NewAuthClient(wwwAuthenticate, "testuser", "testpass") require.NoError(t, err) - authorization := ac.GenerateHeader("ANNOUNCE", "rtsp://myhost/mypath") + authorization := ac.GenerateHeader(ANNOUNCE, "rtsp://myhost/mypath") - err = as.ValidateHeader(authorization, "ANNOUNCE", "rtsp://myhost/mypath") + err = as.ValidateHeader(authorization, ANNOUNCE, "rtsp://myhost/mypath") require.NoError(t, err) }