diff --git a/pkg/handler/config.go b/pkg/handler/config.go index 201ee26..c455713 100644 --- a/pkg/handler/config.go +++ b/pkg/handler/config.go @@ -98,7 +98,7 @@ func (config *Config) validate() error { if config.CorsOrigin != "" && config.CorsOrigin != "*" && config.CorsOrigin != "null" { _, err := url.ParseRequestURI(config.CorsOrigin) if err != nil { - errors.New("tusd: CorsOrigin is not a valid URL") + return errors.New("tusd: CorsOrigin is not a valid URL") } }