In my project, I use the Slash handler provided by Reitit library to remove the trailing / of any URL. This works with the help of HTTP 308 redirect. When trying to do the request using the PATCH HTTP method, I discovered that the :redirect-strategy setting is ignored. I receive the same request result with 308 status as if there was no redirect strategy set. The same happens for the PUT request. However, POST request to the very same address is handled correctly.
In my project, I use the Slash handler provided by Reitit library to remove the trailing
/
of any URL. This works with the help of HTTP308
redirect. When trying to do the request using thePATCH
HTTP method, I discovered that the:redirect-strategy
setting is ignored. I receive the same request result with 308 status as if there was no redirect strategy set. The same happens for thePUT
request. However,POST
request to the very same address is handled correctly.