Skip to content

Commit

Permalink
GHA cache: wrap key with version in url.PathEscape() just in case (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Sep 5, 2024
1 parent d51a6fe commit 6cb495b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agent/http_cache/ghacache/ghacache.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func httpCacheKey(key string, version string) string {
}

func (cache *GHACache) httpCacheURL(keyWithVersion string) string {
return fmt.Sprintf("http://%s/%s", cache.cacheHost, keyWithVersion)
return fmt.Sprintf("http://%s/%s", cache.cacheHost, url.PathEscape(keyWithVersion))
}

func getID(request *http.Request) (int64, bool) {
Expand Down

0 comments on commit 6cb495b

Please sign in to comment.