Skip to content

Commit b766025

Browse files
committed
clangformat
1 parent 9b5f76f commit b766025

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

test/test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3804,8 +3804,7 @@ TEST_F(ServerTest, GetStreamedWithRangeError) {
38043804
TEST_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);

0 commit comments

Comments
 (0)