Remove some commented out code that's not used any more.
This commit is contained in:
parent
95bf81f528
commit
3d6c0ac512
@ -117,28 +117,12 @@ void RequestHandler::handle_request(const http::request ¤t_request,
|
|||||||
current_reply.headers.emplace_back("Access-Control-Allow-Headers",
|
current_reply.headers.emplace_back("Access-Control-Allow-Headers",
|
||||||
"X-Requested-With, Content-Type");
|
"X-Requested-With, Content-Type");
|
||||||
|
|
||||||
if (route_parameters.service == "tile") {
|
if (route_parameters.service == "tile")
|
||||||
|
{
|
||||||
/*
|
|
||||||
std::istringstream is(json_result.values["pbf"].get<osrm::util::json::String>().value);
|
|
||||||
boost::iostreams::filtering_streambuf<boost::iostreams::input> in;
|
|
||||||
//in.push(boost::iostreams::gzip_compressor());
|
|
||||||
in.push(boost::iostreams::zlib_compressor());
|
|
||||||
in.push(is);
|
|
||||||
|
|
||||||
std::ostringstream os;
|
|
||||||
|
|
||||||
boost::iostreams::copy(in,os);
|
|
||||||
|
|
||||||
auto s = os.str();
|
|
||||||
|
|
||||||
std::copy(s.cbegin(),s.cend(), std::back_inserter(current_reply.content));
|
|
||||||
*/
|
|
||||||
std::copy(json_result.values["pbf"].get<osrm::util::json::Buffer>().value.cbegin(),
|
std::copy(json_result.values["pbf"].get<osrm::util::json::Buffer>().value.cbegin(),
|
||||||
json_result.values["pbf"].get<osrm::util::json::Buffer>().value.cend(),
|
json_result.values["pbf"].get<osrm::util::json::Buffer>().value.cend(),
|
||||||
std::back_inserter(current_reply.content));
|
std::back_inserter(current_reply.content));
|
||||||
|
|
||||||
//current_reply.content.append(json_result.values["pbf"].get<osrm::util::json::String>().value
|
|
||||||
current_reply.headers.emplace_back("Content-Type",
|
current_reply.headers.emplace_back("Content-Type",
|
||||||
"application/x-protobuf");
|
"application/x-protobuf");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user