Implements #8 content-range using code from streamer.js