mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
rm panic in session/aux
This commit is contained in:
@@ -65,7 +65,7 @@ func GetImageProxyPrefix(r *http.Request) string {
|
||||
func urlAuthority(url url.URL) string {
|
||||
r := ""
|
||||
if (url.Scheme != "") != (url.Host != "") {
|
||||
log.Panicf("url must have both scheme and authority or neither: %s", url.String())
|
||||
log.Printf("url must have both scheme and authority or neither: %s", url.String())
|
||||
}
|
||||
if url.Scheme != "" {
|
||||
r += url.Scheme + "://"
|
||||
|
||||
Reference in New Issue
Block a user