Net::HTTP's plain #get loads the whole response body before returning — fine for the small JSON manifests elsewhere in this file, but a real risk for a multi-GB country .osm.pbf (Germany, Russia, ...). Streams to disk via read_body instead.
Net::HTTP's plain #get loads the whole response body before returning — fine for the small JSON manifests elsewhere in this file, but a real risk for a multi-GB country .osm.pbf (Germany, Russia, ...). Streams to disk via read_body instead.