mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-25 10:28:18 +03:00
fd8a724e77
* bump go swagger version * bump swagger version
11 lines
158 B
Go
11 lines
158 B
Go
package spec
|
|
|
|
import "net/url"
|
|
|
|
func parseURL(s string) (*url.URL, error) {
|
|
u, err := url.Parse(s)
|
|
if err == nil {
|
|
u.OmitHost = false
|
|
}
|
|
return u, err
|
|
}
|