mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
Merge pull request #2147 from jimen0/fix-faker
Ignore the empty interface when calling the fake data generator
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ type Trace struct {
|
||||
func dslVariables() ([]string, error) {
|
||||
fakeResult := Result{}
|
||||
fieldsToIgnore := []string{"Hashes", "ResponseHeaders", "Err", "KnowledgeBase"}
|
||||
if err := faker.FakeData(&fakeResult, options.WithFieldsToIgnore(fieldsToIgnore...)); err != nil {
|
||||
if err := faker.FakeData(&fakeResult, options.WithFieldsToIgnore(fieldsToIgnore...), options.WithIgnoreInterface(true)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
m, err := resultToMap(fakeResult)
|
||||
|
||||
Reference in New Issue
Block a user