mozilla/pdf.js — pull request #4258 by Rob--W (2014-02-06 22:29:30+00:00)
Title: Do not switch to a range request for small PDFs

Currently, PDF.js always sends at least two requests for sources that support range requests.
I've added a check to see whether the expected content length is bigger than one chunk before continuing with a range request.