Code format
This commit is contained in:
parent
38a6b3e69f
commit
3451da940d
@ -2542,9 +2542,7 @@ inline bool expect_content(const Request &req) {
|
||||
inline bool has_crlf(const char *s) {
|
||||
auto p = s;
|
||||
while (*p) {
|
||||
if (*p == '\r' || *p == '\n') {
|
||||
return true;
|
||||
}
|
||||
if (*p == '\r' || *p == '\n') { return true; }
|
||||
p++;
|
||||
}
|
||||
return false;
|
||||
@ -3529,8 +3527,7 @@ inline bool Server::routing(Request &req, Response &res, Stream &strm) {
|
||||
req, res, reader, patch_handlers_for_content_reader_)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (req.method == "DELETE") {
|
||||
} else if (req.method == "DELETE") {
|
||||
if (dispatch_request_for_content_reader(
|
||||
req, res, reader, delete_handlers_for_content_reader_)) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user