mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
Fix typos
Found via `codespell -L ines,te,ue,occured,ans`
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
// Package customheader contains all the funcionality to deal with Custom Global Headers
|
||||
// Package customheader contains all the functionality to deal with Custom Global Headers
|
||||
package customheader
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Package customlist contains all the funcionality to deal with Custom Target List
|
||||
// Package customlist contains all the functionality to deal with Custom Target List
|
||||
package customlist
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Package customport contains all the funcionality to deal with HTTP ports
|
||||
// Package customport contains all the functionality to deal with HTTP ports
|
||||
package customport
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Package fileutil contains all the funcionality related to deal with files
|
||||
// Package fileutil contains all the functionality related to deal with files
|
||||
package fileutil
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"go.uber.org/multierr"
|
||||
)
|
||||
|
||||
// oneTimePool is a pool designed to create continous bare connections that are for one time only usage
|
||||
// oneTimePool is a pool designed to create continuous bare connections that are for one time only usage
|
||||
type oneTimePool struct {
|
||||
address string
|
||||
idleConnections chan net.Conn
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Package httputilz contains all the funcionality related to common HTTP operations, dump, define methods...
|
||||
// Package httputilz contains all the functionality related to common HTTP operations, dump, define methods...
|
||||
package httputilz
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// Package httpx containst the httpx common funcionality
|
||||
// Package httpx containst the httpx common functionality
|
||||
package httpx
|
||||
|
||||
@@ -14,10 +14,10 @@ var rawResponse string
|
||||
func TestBodyGrabDoamins(t *testing.T) {
|
||||
ht, err := New(&DefaultOptions)
|
||||
require.Nil(t, err)
|
||||
resposne := &Response{
|
||||
response := &Response{
|
||||
Raw: rawResponse,
|
||||
}
|
||||
bd := ht.BodyDomainGrab(resposne)
|
||||
bd := ht.BodyDomainGrab(response)
|
||||
|
||||
sort.Strings(bd.Domains)
|
||||
sort.Strings(bd.Fqdns)
|
||||
|
||||
+1
-1
@@ -1475,7 +1475,7 @@ func (r *Runner) targets(hp *httpx.HTTPX, target string) chan httpx.Target {
|
||||
switch {
|
||||
case stringsutil.HasPrefixAny(target, "*", "."):
|
||||
// A valid target does not contain:
|
||||
// trim * and/or . (prefix) from the target to return the domain instead of wilcard
|
||||
// trim * and/or . (prefix) from the target to return the domain instead of wildcard
|
||||
target = stringsutil.TrimPrefixAny(target, "*", ".")
|
||||
if !r.testAndSet(target) {
|
||||
return
|
||||
|
||||
@@ -31,7 +31,7 @@ func TestRunner_domain_targets(t *testing.T) {
|
||||
got = append(got, target)
|
||||
}
|
||||
}
|
||||
require.ElementsMatch(t, expected, got, "could not exepcted output")
|
||||
require.ElementsMatch(t, expected, got, "could not expected output")
|
||||
}
|
||||
|
||||
func TestRunner_probeall_targets(t *testing.T) {
|
||||
@@ -62,7 +62,7 @@ func TestRunner_probeall_targets(t *testing.T) {
|
||||
got = append(got, target)
|
||||
}
|
||||
|
||||
require.ElementsMatch(t, expected, got, "could not exepcted output")
|
||||
require.ElementsMatch(t, expected, got, "could not expected output")
|
||||
}
|
||||
|
||||
func TestRunner_cidr_targets(t *testing.T) {
|
||||
@@ -87,7 +87,7 @@ func TestRunner_cidr_targets(t *testing.T) {
|
||||
got = append(got, target)
|
||||
}
|
||||
|
||||
require.ElementsMatch(t, expected, got, "could not exepcted output")
|
||||
require.ElementsMatch(t, expected, got, "could not expected output")
|
||||
}
|
||||
|
||||
func TestRunner_asn_targets(t *testing.T) {
|
||||
@@ -179,5 +179,5 @@ func TestRunner_urlWithComma_targets(t *testing.T) {
|
||||
got = append(got, target)
|
||||
}
|
||||
}
|
||||
require.ElementsMatch(t, expected, got, "could not exepcted output")
|
||||
require.ElementsMatch(t, expected, got, "could not expected output")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user