Update file share link host to use 'www' for consistency
This commit is contained in:
@@ -2766,7 +2766,7 @@ func getFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *databas
|
||||
}
|
||||
host := r.Host
|
||||
if host == "" {
|
||||
host = "go.b0esche.cloud"
|
||||
host = "www.b0esche.cloud"
|
||||
}
|
||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
||||
|
||||
@@ -2834,7 +2834,7 @@ func createFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *data
|
||||
}
|
||||
host := r.Host
|
||||
if host == "" {
|
||||
host = "go.b0esche.cloud"
|
||||
host = "www.b0esche.cloud"
|
||||
}
|
||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
||||
|
||||
@@ -3103,7 +3103,7 @@ func getUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *dat
|
||||
}
|
||||
host := r.Host
|
||||
if host == "" {
|
||||
host = "go.b0esche.cloud"
|
||||
host = "www.b0esche.cloud"
|
||||
}
|
||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
||||
|
||||
@@ -3168,7 +3168,7 @@ func createUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *
|
||||
}
|
||||
host := r.Host
|
||||
if host == "" {
|
||||
host = "go.b0esche.cloud"
|
||||
host = "www.b0esche.cloud"
|
||||
}
|
||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user