mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Rename internal url package to avoid overlap with net/url
This commit is contained in:
parent
9f465fd70d
commit
e5d9f2f5a0
23 changed files with 74 additions and 75 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
"miniflux.app/v2/internal/http/client"
|
||||
"miniflux.app/v2/internal/model"
|
||||
"miniflux.app/v2/internal/url"
|
||||
"miniflux.app/v2/internal/urllib"
|
||||
)
|
||||
|
||||
const defaultClientTimeout = 1 * time.Second
|
||||
|
@ -34,7 +34,7 @@ func (c *Client) PushEntry(entry *model.Entry) error {
|
|||
}
|
||||
_, err := net.DialTimeout("tcp", c.baseURL, defaultClientTimeout)
|
||||
if err != nil {
|
||||
apiEndpoint, err := url.JoinBaseURLAndPath(c.baseURL, "/notify")
|
||||
apiEndpoint, err := urllib.JoinBaseURLAndPath(c.baseURL, "/notify")
|
||||
if err != nil {
|
||||
return fmt.Errorf(`apprise: invalid API endpoint: %v`, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue