audiocogs/aurora.js — pull request #59 by desertfox34 (2014-02-28 15:16:30+00:00)
Title: Update to allow proper content range requests

When av.httpsource makes a partial content request, it requests the final chunk one byte too long. Example:

0-1000/1000
should actually be
0-999/1000

This causes xmlhttprequest errors in Chrome when getting 1MB chunks of files (Firefox seemed to compensate for the issue). The fix just sets the total file request size one byte less so we do not throw an error and drop the final request chunk in Chrome.

I've only tested this in Chrome and Firefox doing content range requests with FLAC so mileage could possibly vary on other setups (but I doubt it).