Fixing how `Range` header is handled, fixes #319