odatacpp-client icon indicating copy to clipboard operation
odatacpp-client copied to clipboard

Wrong URL is generated if the next link is not based on the service root url.

Open xuubin opened this issue 10 years ago • 0 comments

auto service_context = std::make_shared(U("http://services.odata.org/v4/TripPinServiceRW/"));
auto people = service_context->create_people_query()->execute_query().get();

Will generate the following url:

GET /v4/TripPinServiceRW/V4/(S(am3jnyd3krsyc5rk4hq3duye))/TripPinServiceRW/People?%24skiptoken=8 HTTP/1.1

xuubin avatar Dec 03 '14 05:12 xuubin