diff --git a/httplib.h b/httplib.h
index 2a85da6..7743f9f 100644
--- a/httplib.h
+++ b/httplib.h
@@ -5166,7 +5166,7 @@ inline bool range_error(Request &req, Response &res) {
       // representation).
       // https://www.rfc-editor.org/rfc/rfc9110.html#section-14.1.2-6
       if (last_pos == -1 || last_pos >= contant_len) {
-          last_pos = contant_len - 1;
+        last_pos = contant_len - 1;
       }
 
       // Range must be within content length
diff --git a/test/test.cc b/test/test.cc
index d9f2036..6ec4b6f 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -3804,8 +3804,7 @@ TEST_F(ServerTest, GetStreamedWithRangeError) {
 TEST_F(ServerTest, GetRangeWithMaxLongLength) {
   auto res = cli_.Get(
       "/with-range",
-      {{"Range",
-        "bytes=0-" + std::to_string(std::numeric_limits<long>::max())},
+      {{"Range", "bytes=0-" + std::to_string(std::numeric_limits<long>::max())},
        {"Accept-Encoding", ""}});
   ASSERT_TRUE(res);
   EXPECT_EQ(StatusCode::PartialContent_206, res->status);