Fix registry delete (#532)

- Make make it possible to delete `"§4fda`
- Reject non urls for registry-address
- Fix #520
This commit is contained in:
6543
2021-11-25 19:04:36 +01:00
committed by GitHub
parent fac0e16996
commit ff8ad5bb83
8 changed files with 22 additions and 15 deletions

View File

@@ -120,7 +120,6 @@ func run(c *cli.Context) error {
var webUIServe func(w http.ResponseWriter, r *http.Request)
if proxyWebUI == "" {
// we are switching from gin to httpservermux|treemux,
webUIServe = setupTree(c).ServeHTTP
} else {
origin, _ := url.Parse(proxyWebUI)

View File

@@ -305,6 +305,7 @@ func setupCoding(c *cli.Context) (remote.Remote, error) {
func setupTree(c *cli.Context) *gin.Engine {
tree := gin.New()
tree.UseRawPath = true
web.New(
web.WithSync(time.Hour*72),
web.WithDocs(c.String("docs")),