set minimum content length to one byte & block inverted range

Make sure we're able to return at least one byte and make sure the start of the range isn't greater than the end.