Skip to content

HAL-FORMS affordance method is in lowercase instead of uppercase #1608

@roman-garcia

Description

@roman-garcia

Hello,

As the title says, when building an HAL-FORMS affordance, the http method is spelled in lowercase. This is done here :

return this.httpMethod == null ? null : this.httpMethod.toString().toLowerCase();

I noticed it while using a 'patch' request which actually resulted in a bad request from the reverse proxy I was requesting, while the same request with 'PATCH' was working fine. Addressing my tomcat directly worked either way though.

After looking around a bit, it does seem that the RFC requires case sensitive naming: https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1 .

If we want to be sure it is supported everywhere, should we change the current behaviour in favour of using uppercase for the method ?
Thank you for your time

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions