mirror of
https://github.com/DullJZ/s3-balance.git
synced 2026-07-03 17:11:20 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ae2a54da3 |
@@ -76,7 +76,7 @@ func (h *S3Handler) RegisterS3Routes(router *mux.Router) {
|
|||||||
|
|
||||||
// 带认证/虚拟主机的路由
|
// 带认证/虚拟主机的路由
|
||||||
protected := router.NewRoute().PathPrefix("/{bucket}").Subrouter()
|
protected := router.NewRoute().PathPrefix("/{bucket}").Subrouter()
|
||||||
protected.StrictSlash(true)
|
// 注意:不使用 StrictSlash(true) 以避免 301 重定向,兼容WinSCP
|
||||||
|
|
||||||
// Bucket operations
|
// Bucket operations
|
||||||
protected.HandleFunc("", h.handleBucketOperations).Methods("GET", "HEAD", "PUT", "DELETE")
|
protected.HandleFunc("", h.handleBucketOperations).Methods("GET", "HEAD", "PUT", "DELETE")
|
||||||
|
|||||||
Reference in New Issue
Block a user