Skip to content

Commit

Permalink
fix handling of excluding all query string parameters from page rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Jun 22, 2023
1 parent a28924d commit b3bd601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/cf-terraforming/cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ func generateResources() func(cmd *cobra.Command, args []string) {
jsonStructData[i].(map[string]interface{})["actions"].(map[string]interface{})["cache_key_fields"].(map[string]interface{})["query_string"].(map[string]interface{})["ignore"] = false
}
if s, sok := c["query_string"].(map[string]interface{})["exclude"].(string); sok && s == "*" {
jsonStructData[i].(map[string]interface{})["actions"].(map[string]interface{})["cache_key_fields"].(map[string]interface{})["query_string"].(map[string]interface{})["exclude"] = []interface{}{}
jsonStructData[i].(map[string]interface{})["actions"].(map[string]interface{})["cache_key_fields"].(map[string]interface{})["query_string"].(map[string]interface{})["exclude"] = nil
jsonStructData[i].(map[string]interface{})["actions"].(map[string]interface{})["cache_key_fields"].(map[string]interface{})["query_string"].(map[string]interface{})["ignore"] = true
}
}
Expand Down

0 comments on commit b3bd601

Please sign in to comment.