add assertion for content-length and content-range header