fix "modifer" -> "modifier" typo everywhere
This commit is contained in:
14
proxychain/requestmodifiers/modify_path_with_regex.go
Normal file
14
proxychain/requestmodifiers/modify_path_with_regex.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
"ladder/proxychain"
|
||||
)
|
||||
|
||||
func ModifyPathWithRegex(match regexp.Regexp, replacement string) proxychain.RequestModification {
|
||||
return func(px *proxychain.ProxyChain) error {
|
||||
px.Request.URL.Path = match.ReplaceAllString(px.Request.URL.Path, replacement)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user