mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:44:08 +00:00
Fix registry delete (#532)
- Make make it possible to delete `"§4fda` - Reject non urls for registry-address - Fix #520
This commit is contained in:
@@ -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)
|
||||
|
@@ -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")),
|
||||
|
Reference in New Issue
Block a user