A func Site was added to return a schema://host string.
This commit is contained in:
parent
ec6c1df474
commit
7c34a3a632
@ -19,6 +19,13 @@ func MainSite(host string) string {
|
|||||||
return "https://arav.su"
|
return "https://arav.su"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Site(host string) string {
|
||||||
|
if strings.Contains(host, ".su") {
|
||||||
|
return "https://radio.arav.su"
|
||||||
|
}
|
||||||
|
return "http://" + host
|
||||||
|
}
|
||||||
|
|
||||||
// ToClientTimezone converts given time to timezone set in a
|
// ToClientTimezone converts given time to timezone set in a
|
||||||
// X-Client-Timezone header. If this header is not set, then
|
// X-Client-Timezone header. If this header is not set, then
|
||||||
// converts to UTC.
|
// converts to UTC.
|
||||||
|
Loading…
Reference in New Issue
Block a user