MCPcopy Index your code
hub / github.com/devploit/nomore403 / filterOriginalMethod

Function filterOriginalMethod

cmd/requester.go:1659–1667  ·  view source on GitHub ↗

filterOriginalMethod extract the original method from the list of combinations

(originalMethod string, combinations []string)

Source from the content-addressed store, hash-verified

1657
1658// filterOriginalMethod extract the original method from the list of combinations
1659func filterOriginalMethod(originalMethod string, combinations []string) []string {
1660 filtered := make([]string, 0, len(combinations))
1661 for _, combination := range combinations {
1662 if combination != originalMethod {
1663 filtered = append(filtered, combination)
1664 }
1665 }
1666 return filtered
1667}
1668
1669// selectRandomCombinations selects up to n random combinations from a list of combinations.
1670func selectRandomCombinations(combinations []string, n int) []string {

Callers 2

requestPathCaseSwitchingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected