Previously path was always updated to path + /
This implementation fails while using the endpoint /services/collector/event as /services/collector/event/ results in 404
The fix removes the hard coded addition of the / to all the paths, and it makes it conditional based on the presence of the path_segment for the get/post actions. If path_segment' exists thepathwill be updated topath + / `
Fix for the Issue #345
Previously
path
was always updated topath + /
This implementation fails while using the endpoint/services/collector/event
as/services/collector/event/
results in 404The fix removes the hard coded addition of the
/
to all the paths, and it makes it conditional based on the presence of thepath_segment
for theget/post
actions. Ifpath_segment' exists the
pathwill be updated to
path + / `