diff options
| author | Emmanuel Odeke <emm.odeke@gmail.com> | 2016-04-09 00:34:18 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-04-09 23:36:28 +0000 |
| commit | 3598d4b8387a9e1c9afd522e0d18201f855f613b (patch) | |
| tree | 7d1586878c36cb620fdc572bab8a7c89f3f81c20 /src/net/http/httputil/example_test.go | |
| parent | c31fdd4ee9fccd24a274cebd82dcc7123ad43d0e (diff) | |
| download | go-3598d4b8387a9e1c9afd522e0d18201f855f613b.tar.xz | |
net/http/httputil: DumpRequest dumps Content-Length if set in header
Fixes #7215
Change-Id: I108171ef18cac66d0dc11ce3553c26fc49529807
Reviewed-on: https://go-review.googlesource.com/21790
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net/http/httputil/example_test.go')
| -rw-r--r-- | src/net/http/httputil/example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/httputil/example_test.go b/src/net/http/httputil/example_test.go index f856135742..6191603674 100644 --- a/src/net/http/httputil/example_test.go +++ b/src/net/http/httputil/example_test.go @@ -47,7 +47,7 @@ func ExampleDumpRequest() { fmt.Printf("%s", b) // Output: - // "POST / HTTP/1.1\r\nHost: www.example.org\r\nAccept-Encoding: gzip\r\nUser-Agent: Go-http-client/1.1\r\n\r\nGo is a general-purpose language designed with systems programming in mind." + // "POST / HTTP/1.1\r\nHost: www.example.org\r\nAccept-Encoding: gzip\r\nContent-Length: 75\r\nUser-Agent: Go-http-client/1.1\r\n\r\nGo is a general-purpose language designed with systems programming in mind." } func ExampleDumpRequestOut() { |
