This commit is contained in:
gospider
2024-12-17 11:38:17 +08:00
parent 3c4eacf660
commit b0f620036d
4 changed files with 7 additions and 5 deletions

View File

@@ -334,8 +334,10 @@ mapL:
orderMap := NewOrderMap()
orderMap.data = value
orderMap.keys = make([]string, len(value))
i := 0
for key := range maps.Keys(value) {
orderMap.keys = append(orderMap.keys, key)
orderMap.keys[i] = key
i++
}
return nil, orderMap, nil, nil
}

View File

@@ -140,7 +140,7 @@ func (obj *connecotr) httpReq(task *reqTask, done chan struct{}) {
if task.res, task.err = obj.Conn.DoRequest(task.req, task.option.OrderHeaders); task.res != nil && task.err == nil {
obj.wrapBody(task)
} else if task.err != nil {
task.err = tools.WrapError(task.err, "http1 roundTrip error")
task.err = tools.WrapError(task.err, "roundTrip error")
}
close(done)
}

2
go.mod
View File

@@ -10,7 +10,7 @@ require (
github.com/gospider007/http2 v0.0.0-20241216122734-aa1047df028c
github.com/gospider007/http3 v0.0.0-20241215120136-980caa047c47
github.com/gospider007/ja3 v0.0.0-20241216123149-83352be79439
github.com/gospider007/re v0.0.0-20240227100911-e27255e48eff
github.com/gospider007/re v0.0.0-20241216142712-efbef8d55ea2
github.com/gospider007/tools v0.0.0-20241216141313-4a832f55a843
github.com/gospider007/websocket v0.0.0-20241216130619-89829336d9a6
github.com/refraction-networking/utls v1.6.7

4
go.sum
View File

@@ -113,8 +113,8 @@ github.com/gospider007/ja3 v0.0.0-20241216123149-83352be79439 h1:zDuskJWFKk7JMs7
github.com/gospider007/ja3 v0.0.0-20241216123149-83352be79439/go.mod h1:AZIKhClKQolSI8o6ixFKIVGOC4lWOdsrF4fshR5axO4=
github.com/gospider007/kinds v0.0.0-20240929092451-8f867acde255 h1:X+AM/mgmh/EfyQUjKZp1VFc9TSlrhkwS0eSYeo5fMs4=
github.com/gospider007/kinds v0.0.0-20240929092451-8f867acde255/go.mod h1:yZx7Zfp1I4P6CO3TcDyDY5SuXQYr0bZjzT9zG0XrJAI=
github.com/gospider007/re v0.0.0-20240227100911-e27255e48eff h1:tiTX2nKAnHZ45JacB/cOf1p4pv5+gw4s1/iGX0ikF0E=
github.com/gospider007/re v0.0.0-20240227100911-e27255e48eff/go.mod h1:X58uk0/F3mVskuQOZng0ZKJiAt3ETn0wxuLN//rVZrE=
github.com/gospider007/re v0.0.0-20241216142712-efbef8d55ea2 h1:ixXFS1DqP0NnHna+b0JKaPqMRYRmahzUADZn7PawQq0=
github.com/gospider007/re v0.0.0-20241216142712-efbef8d55ea2/go.mod h1:kr9bUaC42FS019Ak23fSctbTRB2JpfPPg/pSVjQmsws=
github.com/gospider007/tools v0.0.0-20241216141313-4a832f55a843 h1:Q5judZjpY0p9Qui/ovk2vpvunc1wGkk0wgc8ApbTi3U=
github.com/gospider007/tools v0.0.0-20241216141313-4a832f55a843/go.mod h1:ADvKi8S7EkQleFhauAIzW5xnYVU9sKDSLpZ8mSo3yE4=
github.com/gospider007/websocket v0.0.0-20241216130619-89829336d9a6 h1:GlEpnVq3W5SbDUGydFnQUavyZeNEXGWz08XsMRokNjs=