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) {
51665166 // representation).
51675167 // https://www.rfc-editor.org/rfc/rfc9110.html#section-14.1.2-6
51685168 if (last_pos == -1 || last_pos >= contant_len) {
5169- last_pos = contant_len - 1 ;
5169+ last_pos = contant_len - 1 ;
51705170 }
51715171
51725172 // Range must be within content length
Original file line number Diff line number Diff line change @@ -3804,8 +3804,7 @@ TEST_F(ServerTest, GetStreamedWithRangeError) {
38043804TEST_F (ServerTest, GetRangeWithMaxLongLength) {
38053805 auto res = cli_.Get (
38063806 " /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 ())},
38093808 {" Accept-Encoding" , " " }});
38103809 ASSERT_TRUE (res);
38113810 EXPECT_EQ (StatusCode::PartialContent_206, res->status );
You can’t perform that action at this time.
0 commit comments