httplib support delete params fix #2593

This commit is contained in:
astaxie
2017-04-25 20:42:43 +08:00
parent d03285a0ee
commit 3742d1178c
2 changed files with 9 additions and 1 deletions

View File

@@ -102,6 +102,14 @@ func TestSimpleDelete(t *testing.T) {
t.Log(str)
}
func TestSimpleDeleteParam(t *testing.T) {
str, err := Delete("http://httpbin.org/delete").Param("key", "val").String()
if err != nil {
t.Fatal(err)
}
t.Log(str)
}
func TestWithCookie(t *testing.T) {
v := "smallfish"
str, err := Get("http://httpbin.org/cookies/set?k1=" + v).SetEnableCookie(true).String()