I have registered a HttpResource on the Path "CSPInternal" and allowed only method POST.
In render_POST I print all path pieces but I get strange results.
curl -X POST -d "foo=bar" https://localhost:9999/CSPInternal/newMethod"
If I use the method getPath() of HttpRequest i get the right value : CSPInternal/newMethod
But if I use getPathPieces() a vector with 4 elements is returned:
- 0 : CSPInternal
- 1: newMethod
- 2: CSPInternal
- 3: newMethod
I have registered a HttpResource on the Path "CSPInternal" and allowed only method POST.
In render_POST I print all path pieces but I get strange results.
curl -X POST -d "foo=bar" https://localhost:9999/CSPInternal/newMethod"If I use the method getPath() of HttpRequest i get the right value :
CSPInternal/newMethodBut if I use getPathPieces() a vector with 4 elements is returned: