Skip to content

Commit 03a1d0f

Browse files
committed
comment on why we're removing headers
1 parent 0b14d4f commit 03a1d0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dropshot/src/compression.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ pub fn apply_gzip_compression(response: Response<Body>) -> Response<Body> {
235235
);
236236
}
237237

238+
// because we're streaming, we can't handle ranges and we don't know the
239+
// length of the response ahead of time
238240
parts.headers.remove(http::header::ACCEPT_RANGES);
239241
parts.headers.remove(http::header::CONTENT_LENGTH);
240242

0 commit comments

Comments
 (0)