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

HEAD method is advertised in the API but not allowed #7242

Closed
ibnesayeed opened this issue Apr 28, 2020 · 0 comments · Fixed by ipfs/go-ipfs-cmds#195
Closed

HEAD method is advertised in the API but not allowed #7242

ibnesayeed opened this issue Apr 28, 2020 · 0 comments · Fixed by ipfs/go-ipfs-cmds#195
Assignees
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization

Comments

@ibnesayeed
Copy link

Version information:

$ ipfs version --all
go-ipfs version: 0.5.0
Repo version: 9
System version: amd64/linux
Golang version: go1.13.10

Description:

It looks like the API now does not allow GET/HEAD requests as per #7097, but the HEAD request returns 405 Method Not Allowed response that ironically includes an Allow header that suggests HEAD is allowed.

$ curl -I http://localhost:5001/api/v0/version
HTTP/1.1 405 Method Not Allowed
Allow: HEAD
Allow: OPTIONS
Allow: POST
Content-Type: text/plain; charset=utf-8
Vary: Origin
X-Content-Type-Options: nosniff
Date: Tue, 28 Apr 2020 21:09:37 GMT
Content-Length: 25
@ibnesayeed ibnesayeed added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants