diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-09 22:36:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-09 22:36:10 -0700 |
| commit | b183ae54b53c16de578950617da85c5d948acf4e (patch) | |
| tree | 9b7899366a2d9aee5e4dd8a59be98a1aa4e80d09 | |
| parent | 47b3f932e4175c6e7479252d5d6073789495a509 (diff) | |
| download | seaweedfs-b183ae54b53c16de578950617da85c5d948acf4e.tar.xz seaweedfs-b183ae54b53c16de578950617da85c5d948acf4e.zip | |
master: changing 301 to 308 on redirect to volume servers
fix https://github.com/chrislusf/seaweedfs/issues/1454
| -rw-r--r-- | weed/server/master_server_handlers_admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/master_server_handlers_admin.go b/weed/server/master_server_handlers_admin.go index 7595c0171..34235384f 100644 --- a/weed/server/master_server_handlers_admin.go +++ b/weed/server/master_server_handlers_admin.go @@ -110,7 +110,7 @@ func (ms *MasterServer) redirectHandler(w http.ResponseWriter, r *http.Request) } else { url = util.NormalizeUrl(loc.PublicUrl) + r.URL.Path } - http.Redirect(w, r, url, http.StatusMovedPermanently) + http.Redirect(w, r, url, http.StatusPermanentRedirect) } else { writeJsonError(w, r, http.StatusNotFound, fmt.Errorf("volume id %s not found: %s", vid, location.Error)) } |
