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

*: Serve HEAD requests for documentation URLs #199

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

tatiana-nspcc
Copy link
Contributor

Previously, URLS: "/", "/v1/docs/", "/v1/docs/swagger.json" returned the error "405 Method Not Allowed". But now they return the same headers as GET requests.

Close #197.

Previously, URLS: "/", "/v1/docs/", "/v1/docs/swagger.json" returned the error
"405 Method Not Allowed". But now they return the same headers as GET requests.

Close #197.

Signed-off-by: Tatiana Nesterenko <tatiana@nspcc.io>
@tatiana-nspcc
Copy link
Contributor Author

I've also added the same behaviour for "/v1/docs/swagger.json", please, let me know if it's not needed.

@roman-khimov roman-khimov merged commit cc943c9 into master Apr 17, 2024
10 of 11 checks passed
@roman-khimov roman-khimov deleted the 197-add-head-for-docs-url branch April 17, 2024 10:30
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

Successfully merging this pull request may close these issues.

Documentation URLs treat HEAD as not allowed
3 participants