You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I specify endpoints ending with a slash in my swagger file, at runtime when trying to reach the same endpoint I get a {"code":404,"message":"path /trailingslashpath/ was not found"} response.
I don't know if this is an expected result or not.
The behavior is due to the DefaultRouter function. It calls the 'path.Join' function which removes any trailing slash except for the root path.
The result is that no handler seems to be registered.
The text was updated successfully, but these errors were encountered:
Problem statement
When I specify endpoints ending with a slash in my swagger file, at runtime when trying to reach the same endpoint I get a
{"code":404,"message":"path /trailingslashpath/ was not found"}
response.It looks related to this: github.com/go-swagger/go-swagger/pull/292 but the problem does not come from the same code.
I don't know if this is an expected result or not.
The behavior is due to the DefaultRouter function. It calls the 'path.Join' function which removes any trailing slash except for the root path.
The result is that no handler seems to be registered.
The text was updated successfully, but these errors were encountered: