Skip to content

x/pkgsite: HEAD requests return 405 (Method Not Allowed) #43739

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
eliasnaur opened this issue Jan 16, 2021 · 1 comment
Closed

x/pkgsite: HEAD requests return 405 (Method Not Allowed) #43739

eliasnaur opened this issue Jan 16, 2021 · 1 comment
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Milestone

Comments

@eliasnaur
Copy link
Contributor

pkg.go.dev doesn't allow HEAD requests:

$ curl -I https://pkg.go.dev/syscall
HTTP/2 405
content-type: text/plain; charset=utf-8
x-content-type-options: nosniff
x-cloud-trace-context: 03674247fe2e9daacea3b8fa2ff41730
content-length: 19
date: Sat, 16 Jan 2021 09:15:36 GMT
server: Google Frontend

The old godoc.org site did:

$ curl -I https://godoc.org/syscall
HTTP/2 200
date: Sat, 16 Jan 2021 09:19:25 GMT
content-type: text/html; charset=utf-8
content-length: 425191
vary: Accept-Encoding
etag: "ac530c7afc8cda7e2e0b1ff90eb11cce"
set-cookie: GODOC_ORG_SESSION_ID=d1355207247bb6b3; Expires=Sat, 16 Jan 2021 10:19:25 GMT
x-cloud-trace-context: 7d8d6f6a6e87d651e4b3a953f7279574/10706169951343895945;o=1
via: 1.1 google

I used HEAD requests to redirect to to godoc.org for URLs where a HEAD didn't return 404.

@gopherbot gopherbot added this to the Unreleased milestone Jan 16, 2021
@jba jba self-assigned this Jan 19, 2021
@julieqiu julieqiu added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 19, 2021
@gopherbot
Copy link
Contributor

Change https://golang.org/cl/284912 mentions this issue: frontend: allow HEAD requests

@golang golang locked and limited conversation to collaborators Jan 21, 2022
@rsc rsc unassigned jba Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Projects
None yet
Development

No branches or pull requests

4 participants