checksum is transmitted to the client.
This commit is contained in:
@@ -25,6 +25,7 @@ struct RawRouteData {
|
||||
std::vector< _PathData > computedRouted;
|
||||
std::vector< PhantomNodes > segmentEndCoordinates;
|
||||
std::vector< _Coordinate > rawViaNodeCoordinates;
|
||||
unsigned checkSum;
|
||||
};
|
||||
|
||||
#endif /* RAWROUTEDATA_H_ */
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
_Coordinate startCoord(lat1, lon1);
|
||||
_Coordinate targetCoord(lat2, lon2);
|
||||
RawRouteData rawRoute;
|
||||
|
||||
rawRoute.checkSum = nodeHelpDesk->GetCheckSum();
|
||||
if(false == checkCoord(startCoord) || false == checkCoord(targetCoord)) {
|
||||
reply = http::Reply::stockReply(http::Reply::badRequest);
|
||||
return;
|
||||
@@ -152,7 +152,7 @@ public:
|
||||
std::string JSONParameter = routeParameters.options.Find("jsonp");
|
||||
if("" != JSONParameter) {
|
||||
reply.content += JSONParameter;
|
||||
reply.content += "(\n";
|
||||
reply.content += "(";
|
||||
}
|
||||
|
||||
_DescriptorConfig descriptorConfig;
|
||||
|
||||
Reference in New Issue
Block a user