wangluozhe / requests-go

go版requests的python版本,支持tls,http2,ja3指纹自定义
MIT License
170 stars 45 forks source link

timeout不支持传入元组吗 #32

Open a549671887 opened 4 months ago

a549671887 commented 4 months ago
    response = requests.get(url, headers=headers, timeout=(20, 20), tls_config=rei_tls(),proxies={"http": f"http://{proxyip}", "https": f"http://{proxyip}"})

我timeout设置成(20,20)这么请求,会报错 [Errno requests_go error:] {"err": "request->err := json.Unmarshal([]byte(requestParamsString), &requestParams) failed: json: cannot unmarshal array into Go struct field RequestParams.Timeout of type int"}