From a2dcb619784d53527b8ac999f70e1dfb567e35e5 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 9 May 2021 18:25:25 +0200 Subject: [PATCH] write URL in uppercase --- internal/conf/path.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/conf/path.go b/internal/conf/path.go index a0707bb0..ba3323bb 100644 --- a/internal/conf/path.go +++ b/internal/conf/path.go @@ -139,7 +139,7 @@ func (pconf *PathConf) fillAndCheck(name string) error { u, err := base.ParseURL(pconf.Source) if err != nil { - return fmt.Errorf("'%s' is not a valid RTSP url", pconf.Source) + return fmt.Errorf("'%s' is not a valid RTSP URL", pconf.Source) } if u.User != nil { @@ -181,10 +181,10 @@ func (pconf *PathConf) fillAndCheck(name string) error { u, err := url.Parse(pconf.Source) if err != nil { - return fmt.Errorf("'%s' is not a valid RTMP url", pconf.Source) + return fmt.Errorf("'%s' is not a valid RTMP URL", pconf.Source) } if u.Scheme != "rtmp" { - return fmt.Errorf("'%s' is not a valid RTMP url", pconf.Source) + return fmt.Errorf("'%s' is not a valid RTMP URL", pconf.Source) } if u.User != nil { @@ -203,7 +203,7 @@ func (pconf *PathConf) fillAndCheck(name string) error { _, err := base.ParseURL(pconf.SourceRedirect) if err != nil { - return fmt.Errorf("'%s' is not a valid RTSP url", pconf.SourceRedirect) + return fmt.Errorf("'%s' is not a valid RTSP URL", pconf.SourceRedirect) } default: @@ -234,7 +234,7 @@ func (pconf *PathConf) fillAndCheck(name string) error { } else { _, err := base.ParseURL(pconf.Fallback) if err != nil { - return fmt.Errorf("'%s' is not a valid RTSP url", pconf.Fallback) + return fmt.Errorf("'%s' is not a valid RTSP URL", pconf.Fallback) } } }