This commit is contained in:
gospider
2025-03-07 14:49:56 +08:00
parent 7aaa857a95
commit 879b35ded0
3 changed files with 6 additions and 13 deletions

View File

@@ -90,7 +90,7 @@ type RequestOption struct {
ClientOption
Stream bool //disable auto read
DisProxy bool //force disable proxy
once bool
readOne bool
orderHeaders *OrderData //order headers
gospiderSpec *GospiderSpec
disBody bool
@@ -145,7 +145,7 @@ func (obj *RequestOption) initBody(ctx context.Context) (io.Reader, error) {
if err != nil {
return nil, err
}
obj.once = once
obj.readOne = once
return body, err
} else if obj.Data != nil {
if obj.ContentType == "" {