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

Add AllowedMethods field to transport.Options #2080

Merged
merged 2 commits into from
Apr 11, 2022

Conversation

morikuni
Copy link
Contributor

@morikuni morikuni commented Apr 4, 2022

This PR enables users to specify allowed HTTP methods in transport.Options struct.

If the server didn't support querying with GET method, OPTIONS method shouldn't respond with Allow: GET, ... header. The newly added AllowedMethod field enables the server to set correct allowed methods.

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

to enable users to specify allowed HTTP methods.
@coveralls
Copy link

coveralls commented Apr 5, 2022

Coverage Status

Coverage increased (+0.02%) to 74.518% when pulling 5ea385b on morikuni:options-allow-header into 12b0b38 on 99designs:master.

Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>
@StevenACoffman StevenACoffman merged commit 035e1d6 into 99designs:master Apr 11, 2022
@morikuni morikuni deleted the options-allow-header branch April 12, 2022 00:58
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.

4 participants