Skip to content

import/path: issue title #68253

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

Closed
BillGates43957 opened this issue Jul 1, 2024 · 2 comments
Closed

import/path: issue title #68253

BillGates43957 opened this issue Jul 1, 2024 · 2 comments

Comments

@BillGates43957
Copy link

BillGates43957 commented Jul 1, 2024

Go version

go 1.22

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''

GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''


GOOS='linux'


GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.2'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'

GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build548772332=/tmp/go-build -gno-record-gcc-switches'

What did you do?

https://go.dev/play/p/HkRxU5V-krn

I created an HTTP POST request using the net/http package with a URL containing double slashes, e.g., http://example.com//api/broadcast.

What did you see happen?

The server received a GET request.

What did you expect to see?

I expected the server to receive a POST request.

@mvdan
Copy link
Member

mvdan commented Jul 1, 2024

@gabyhelp is right; this appears like a duplicate of #29584.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants