Skip to content

Commit 3451da9

Browse files
committed
Code format
1 parent 38a6b3e commit 3451da9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

httplib.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,12 +2539,10 @@ inline bool expect_content(const Request &req) {
25392539
return false;
25402540
}
25412541

2542-
inline bool has_crlf(const char* s) {
2542+
inline bool has_crlf(const char *s) {
25432543
auto p = s;
25442544
while (*p) {
2545-
if (*p == '\r' || *p == '\n') {
2546-
return true;
2547-
}
2545+
if (*p == '\r' || *p == '\n') { return true; }
25482546
p++;
25492547
}
25502548
return false;
@@ -3529,8 +3527,7 @@ inline bool Server::routing(Request &req, Response &res, Stream &strm) {
35293527
req, res, reader, patch_handlers_for_content_reader_)) {
35303528
return true;
35313529
}
3532-
}
3533-
else if (req.method == "DELETE") {
3530+
} else if (req.method == "DELETE") {
35343531
if (dispatch_request_for_content_reader(
35353532
req, res, reader, delete_handlers_for_content_reader_)) {
35363533
return true;
@@ -4523,7 +4520,7 @@ inline bool process_and_close_socket_ssl(
45234520
}
45244521

45254522
if (ret) {
4526-
SSL_shutdown(ssl); // shutdown only if not already closed by remote
4523+
SSL_shutdown(ssl); // shutdown only if not already closed by remote
45274524
}
45284525
{
45294526
std::lock_guard<std::mutex> guard(ctx_mutex);

0 commit comments

Comments
 (0)