Skip to content

net/http: Get Response body repeated #29955

Closed
@ivolkoff

Description

@ivolkoff

What version of Go are you using (go version)?

$ go version
go version go1.11.5 windows/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Ivan\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Ivan\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\3C8A~1\AppData\Local\Temp\go-build734602198=/tmp/go-build -gno-record-gcc-switches

What did you do?

https://play.golang.org/p/8oOAL2ZpFYQ

What did you expect to see?

I expect each request to be fulfilled and return a unique page.

What did you see instead?

I see that the body of the page is repeated and I do not find the reason for this.

image

https://www.legifrance.gouv.fr/affichCodeArticle.do;jsessionid=3B2A2AFFC85D4227A434B7DACCAD80F0.tplgfr28s_3?idArticle=LEGIARTI000006223239&cidTexte=LEGITEXT000005634379&dateTexte=20190127&fastPos=27&fastReqId=1

https://www.legifrance.gouv.fr/affichCodeArticle.do;jsessionid=3B2A2AFFC85D4227A434B7DACCAD80F0.tplgfr28s_3?idArticle=LEGIARTI000006262799&cidTexte=LEGITEXT000005634379&dateTexte=20190127&fastPos=28&fastReqId=1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions