瀏覽代碼

Fixed indenting in is_put_or_delete_request()

Sergey Lyubka 12 年之前
父節點
當前提交
c6fb9ac3d0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      mongoose.c

+ 3 - 1
mongoose.c

@@ -4345,7 +4345,9 @@ int mg_upload(struct mg_connection *conn, const char *destination_dir) {
 
 static int is_put_or_delete_request(const struct mg_connection *conn) {
   const char *s = conn->request_info.request_method;
-  return s != NULL && (!strcmp(s, "PUT") || !strcmp(s, "DELETE") || !strcmp(s, "MKCOL"));
+  return s != NULL && (!strcmp(s, "PUT") ||
+                       !strcmp(s, "DELETE") ||
+                       !strcmp(s, "MKCOL"));
 }
 
 static int get_first_ssl_listener_index(const struct mg_context *ctx) {