Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Commit 64798f5

Browse files
committed
style(binding): Update example
Change-Id: Ic9260a2f01060d72c8bf34bcb5790b9ba24586f6
1 parent d8922d9 commit 64798f5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

binding/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func Example() {
4747

4848
// Output:
4949
// request:
50-
// POST /?year=2018&year=2019&AutoQuery=autoquery_test HTTP/1.1
50+
// POST /info/henrylee2cn?year=2018&year=2019&AutoQuery=autoquery_test HTTP/1.1
5151
// Host: localhost
5252
// User-Agent: Go-http-client/1.1
5353
// Transfer-Encoding: chunked

binding/example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func Example() {
4040

4141
// Output:
4242
// request:
43-
// POST /?year=2018&year=2019&AutoQuery=autoquery_test HTTP/1.1
43+
// POST /info/henrylee2cn?year=2018&year=2019&AutoQuery=autoquery_test HTTP/1.1
4444
// Host: localhost
4545
// User-Agent: Go-http-client/1.1
4646
// Transfer-Encoding: chunked
@@ -91,7 +91,7 @@ func requestExample() *http.Request {
9191
cookies := []*http.Cookie{
9292
{Name: "sessionid", Value: "987654"},
9393
}
94-
req := newRequest("http://localhost/?year=2018&year=2019&AutoQuery=autoquery_test", header, cookies, bodyReader)
94+
req := newRequest("http://localhost/info/henrylee2cn?year=2018&year=2019&AutoQuery=autoquery_test", header, cookies, bodyReader)
9595
req.Method = "POST"
9696
var w bytes.Buffer
9797
req.Write(&w)

0 commit comments

Comments
 (0)