Add a distinct Buffer type for encoding binary data in JSON responses. Treated like a string, but allows other consumers (a-la node-osrm) to recognize and not break string encodings.
This commit is contained in:
committed by
Patrick Niklaus
parent
5dc7b79bb6
commit
26453af1b9
@@ -333,7 +333,7 @@ template <class DataFacadeT> class TilePlugin final : public BasePlugin
|
||||
}
|
||||
}
|
||||
|
||||
json_result.values["pbf"] = buffer;
|
||||
json_result.values["pbf"] = osrm::util::json::Buffer(buffer);
|
||||
|
||||
return Status::Ok;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user