Return a valid Content-Range header
Edge cases of Range header are standards compliant

Fix a few Range header edge cases to ensure that it is as
standards-compliant as possible.
Merge pull request #808 from wolever/standards-complient-range

Edge cases of Range header are standards compliant