Fixed incorrect 'Content-Range' response, close the response when we finish the range
Fixed incorrect 'Content-Length' response and bug where we trimmed the last byte