Skip to content

Commit c643d8c

Browse files
vimwtfcloudlena
authored andcommitted
use rooturl prefix in /buckets redirect
1 parent f457f70 commit c643d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func main() {
183183

184184
// Set up router
185185
r := mux.NewRouter()
186-
r.Handle("/", http.RedirectHandler("/buckets", http.StatusPermanentRedirect)).Methods(http.MethodGet)
186+
r.Handle("/", http.RedirectHandler(rootURL+"/buckets", http.StatusPermanentRedirect)).Methods(http.MethodGet)
187187
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.FS(statics)))).Methods(http.MethodGet)
188188

189189
// S3 instance management endpoints

0 commit comments

Comments
 (0)