asmcos / requests

A golang HTTP client library. Salute to python requests.
Other
665 stars 90 forks source link

http: ContentLength=N with Body length 0 #10

Closed hipeace86 closed 4 years ago

hipeace86 commented 4 years ago
client:= requests.Requests()
client.Post("https://www.httpbin.org/post",requests.Datas{"abc":"123","ddd":"789"})
resp,err:=client.Get("https://www.httpbin.org/get")
if err!= nil{
    fmt.Println(err)
}
fmt.Println(resp.Text())
asmcos commented 4 years ago

已经修复了 post后的残留数据