Wrong method with trailing slash #921
Labels
good first issue
A user wrote a good first issue with clear instructions
🚨 prio:high
🤘 status:resolved
🐞 type:bug
Hello,
I'm encountering an issue with the iris's routes matcher.
I'm using iris
v10.2.1
Let's consider the following main:
I ran this code and I tried it.
When I do a POST request on http://127.0.0.1:8082/foo => it's working
When I do a GET request on http://127.0.0.1:8082/foo => it's working
When I do a GET request on http://127.0.0.1:8082/foo/ => it's working
But when I do a POST request on http://127.0.0.1:8082/foo/ ,
The result is: "Hello from method: GET and path: /foo"
I guess the
ctx.Method()
is not supposed to return GETThanks for looking at this issue.
The text was updated successfully, but these errors were encountered: