set minimum content length to 1 & 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.