File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5166,7 +5166,7 @@ inline bool range_error(Request &req, Response &res) {
5166
5166
// representation).
5167
5167
// https://www.rfc-editor.org/rfc/rfc9110.html#section-14.1.2-6
5168
5168
if (last_pos == -1 || last_pos >= contant_len) {
5169
- last_pos = contant_len - 1 ;
5169
+ last_pos = contant_len - 1 ;
5170
5170
}
5171
5171
5172
5172
// Range must be within content length
Original file line number Diff line number Diff line change @@ -3804,8 +3804,7 @@ TEST_F(ServerTest, GetStreamedWithRangeError) {
3804
3804
TEST_F (ServerTest, GetRangeWithMaxLongLength) {
3805
3805
auto res = cli_.Get (
3806
3806
" /with-range" ,
3807
- {{" Range" ,
3808
- " bytes=0-" + std::to_string (std::numeric_limits<long >::max ())},
3807
+ {{" Range" , " bytes=0-" + std::to_string (std::numeric_limits<long >::max ())},
3809
3808
{" Accept-Encoding" , " " }});
3810
3809
ASSERT_TRUE (res);
3811
3810
EXPECT_EQ (StatusCode::PartialContent_206, res->status );
You can’t perform that action at this time.
0 commit comments