mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
restore support for cameras with percent sign in password, broken after 1e612f2
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package base
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -22,11 +23,12 @@ func TestURLParse(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
"ipv6 stateless",
|
||||
`rtsp://[fe80::a8f4:3219:f33e:a072%wl0]:8554/proxied`,
|
||||
`rtsp://user:pa%23ss@[fe80::a8f4:3219:f33e:a072%wl0]:8554/prox%23ied`,
|
||||
&URL{
|
||||
Scheme: "rtsp",
|
||||
Host: "[fe80::a8f4:3219:f33e:a072%wl0]:8554",
|
||||
Path: "/proxied",
|
||||
Path: "/prox#ied",
|
||||
User: url.UserPassword("user", "pa#ss"),
|
||||
},
|
||||
},
|
||||
} {
|
||||
|
Reference in New Issue
Block a user