mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-19 17:00:37 +00:00
Generate more realistic resource ids
This commit is contained in:
@@ -75,8 +75,7 @@ func requestToResourceId(c *gin.Context) string {
|
||||
|
||||
isFeed := c.Request.Header.Get("A-Im") == "Incremental Feed"
|
||||
if resourceType == "pkranges" && isFeed {
|
||||
// CosmosSDK replaces '/' with '-' in resource id requests
|
||||
resourceId = strings.Replace(collId, "-", "/", -1)
|
||||
resourceId = collId
|
||||
}
|
||||
|
||||
return resourceId
|
||||
|
||||
Reference in New Issue
Block a user