1
0
mirror of synced 2025-04-28 09:25:05 +03:00

Code format

This commit is contained in:
yhirose 2020-04-19 22:05:04 -04:00
parent 38a6b3e69f
commit 3451da940d

View File

@ -2539,12 +2539,10 @@ inline bool expect_content(const Request &req) {
return false; return false;
} }
inline bool has_crlf(const char* s) { inline bool has_crlf(const char *s) {
auto p = s; auto p = s;
while (*p) { while (*p) {
if (*p == '\r' || *p == '\n') { if (*p == '\r' || *p == '\n') { return true; }
return true;
}
p++; p++;
} }
return false; return false;
@ -3529,8 +3527,7 @@ inline bool Server::routing(Request &req, Response &res, Stream &strm) {
req, res, reader, patch_handlers_for_content_reader_)) { req, res, reader, patch_handlers_for_content_reader_)) {
return true; return true;
} }
} } else if (req.method == "DELETE") {
else if (req.method == "DELETE") {
if (dispatch_request_for_content_reader( if (dispatch_request_for_content_reader(
req, res, reader, delete_handlers_for_content_reader_)) { req, res, reader, delete_handlers_for_content_reader_)) {
return true; return true;