Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http/httptest: multiple fields in a Trailer field are ignored #51761

Closed
maxatome opened this issue Mar 17, 2022 · 2 comments
Closed

net/http/httptest: multiple fields in a Trailer field are ignored #51761

maxatome opened this issue Mar 17, 2022 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.

Comments

@maxatome
Copy link

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

$ go version
go version go1.18 freebsd/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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="freebsd"
GOINSECURE=""
GONOPROXY="gitlab.com/limengo"
GONOSUMDB="gitlab.com/limengo"
GOOS="freebsd"
GOPATH="/home/max/Projet/go"
GOPRIVATE="gitlab.com/limengo"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/freebsd_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3692131203=/tmp/go-build -gno-record-gcc-switches"

What did you do?

https://go.dev/play/p/vxlCX5nURTe

What did you expect to see?

     got: map[Atend1:[value 1] Atend2:[value 2] Atend3:[value 3]]
expected: map[Atend1:[value 1] Atend2:[value 2] Atend3:[value 3]]

What did you see instead?

     got: map[Atend3:[value 3]]
expected: map[Atend1:[value 1] Atend2:[value 2] Atend3:[value 3]]
@seankhliao seankhliao added the NeedsFix The path to resolution is known, but the work has not been done. label Mar 17, 2022
@seankhliao
Copy link
Member

cc @neild

@gopherbot
Copy link

Change https://go.dev/cl/393616 mentions this issue: net/http/httptest: allow multiple fields be present in one Trailer field

@golang golang locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants