mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
优化代码
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"net/http"
|
||||
|
||||
"gitee.com/baixudong/bson"
|
||||
"gitee.com/baixudong/gson"
|
||||
"github.com/tidwall/gjson"
|
||||
)
|
||||
|
||||
@@ -47,7 +47,7 @@ func (obj *RequestOption) initHeaders() error {
|
||||
obj.Headers = head
|
||||
return nil
|
||||
default:
|
||||
jsonData, err := bson.Decode(headers)
|
||||
jsonData, err := gson.Decode(headers)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user