mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
4
body.go
4
body.go
@@ -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
|
||||
}
|
||||
|
||||
2
conn.go
2
conn.go
@@ -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
2
go.mod
@@ -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
4
go.sum
@@ -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=
|
||||
|
||||
Reference in New Issue
Block a user