Skip to content

Commit

Permalink
Merge pull request #18 from forta-network/caner/revert-upload-path-base
Browse files Browse the repository at this point in the history
Put back the old upload path base
  • Loading branch information
canercidam authored Jan 12, 2024
2 parents 342208d + 2660975 commit 4181ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"github.com/forta-network/disco/drivers/multidriver"
)

// FixUploadPath rewrites .../repository/<name>/_uploads to /disco-uploads to make things easier.
// FixUploadPath rewrites .../repository/<name>/_uploads to another path to make things easier.
func FixUploadPath(path string) string {
if !strings.Contains(path, "/_uploads") {
return path
}
newPath := "/disco-uploads"
newPath := "/docker/registry/v2/uploads"
var append bool
// append the segments after "_uploads"
for _, segment := range strings.Split(path, "/") {
Expand Down

0 comments on commit 4181ed6

Please sign in to comment.