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

DELETE on action should not require Accept header #3085

Open
benfrancis opened this issue Apr 27, 2023 · 0 comments
Open

DELETE on action should not require Accept header #3085

benfrancis opened this issue Apr 27, 2023 · 0 comments
Labels
bug w3c-compliance wot-profile W3C WoT Profile specification

Comments

@benfrancis
Copy link
Member

A cancelaction operation in the HTTP Basic Profile has the following requirements for a request:

  • Method set to DELETE
  • URL set to the URL of the ActionStatus resource

Currently this is supported, but it only works if the client sets an Accept header with the value application/json.

If the Accept header is not included the request gets routed to the wrong place by the content negotiation middleware and provides an error response with an HTML payload. The request should not require an Accept header because it does not expect a body in the response.

The fix might require modifying the content negotiation middleware to default to JSON rather than HTML.

@benfrancis benfrancis added bug wot-profile W3C WoT Profile specification w3c-compliance labels Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug w3c-compliance wot-profile W3C WoT Profile specification
Projects
None yet
Development

No branches or pull requests

1 participant