Unit test reproducing range header larger than file size, and fixes.
Merge pull request #863 from Its-Tyson/partial-content-fix

Fix for partial content 'Range' header bigger than actual content size