Commit cd9e179f authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Format for previous commit

PUBLISHED_FROM=609ef3587e4293b0cdbf865cfc466bbb85233361
parent 0ba28e61
...@@ -7004,8 +7004,8 @@ void mg_http_reverse_proxy(struct mg_connection *nc, ...@@ -7004,8 +7004,8 @@ void mg_http_reverse_proxy(struct mg_connection *nc,
be = mg_connect_http_base(nc->mgr, mg_reverse_proxy_handler, opts, "http://", be = mg_connect_http_base(nc->mgr, mg_reverse_proxy_handler, opts, "http://",
"https://", purl, &path, NULL /* user */, "https://", purl, &path, NULL /* user */,
NULL /* pass */, &addr); NULL /* pass */, &addr);
LOG(LL_DEBUG, ("Proxying %.*s to %s (rule: %.*s)", (int) hm->uri.len, hm->uri.p, purl, LOG(LL_DEBUG, ("Proxying %.*s to %s (rule: %.*s)", (int) hm->uri.len,
(int) mount.len, mount.p)); hm->uri.p, purl, (int) mount.len, mount.p));
if (be == NULL) { if (be == NULL) {
LOG(LL_ERROR, ("Error connecting to %s: %s", purl, error)); LOG(LL_ERROR, ("Error connecting to %s: %s", purl, error));
...@@ -7225,7 +7225,8 @@ MG_INTERNAL int mg_uri_to_local_path(struct http_message *hm, ...@@ -7225,7 +7225,8 @@ MG_INTERNAL int mg_uri_to_local_path(struct http_message *hm,
} }
out: out:
LOG(LL_DEBUG, ("'%.*s' -> '%s' + '%.*s'", (int) hm->uri.len, hm->uri.p, LOG(LL_DEBUG,
("'%.*s' -> '%s' + '%.*s'", (int) hm->uri.len, hm->uri.p,
*local_path ? *local_path : "", (int) remainder->len, remainder->p)); *local_path ? *local_path : "", (int) remainder->len, remainder->p));
return ok; return ok;
} }
...@@ -7331,7 +7332,8 @@ MG_INTERNAL void mg_send_http_file(struct mg_connection *nc, char *path, ...@@ -7331,7 +7332,8 @@ MG_INTERNAL void mg_send_http_file(struct mg_connection *nc, char *path,
(mg_match_prefix(opts->cgi_file_pattern, strlen(opts->cgi_file_pattern), (mg_match_prefix(opts->cgi_file_pattern, strlen(opts->cgi_file_pattern),
index_file ? index_file : path) > 0); index_file ? index_file : path) > 0);
LOG(LL_DEBUG, ("%p %.*s [%s] exists=%d is_dir=%d is_dav=%d is_cgi=%d index=%s", nc, LOG(LL_DEBUG,
("%p %.*s [%s] exists=%d is_dir=%d is_dav=%d is_cgi=%d index=%s", nc,
(int) hm->method.len, hm->method.p, path, exists, is_directory, is_dav, (int) hm->method.len, hm->method.p, path, exists, is_directory, is_dav,
is_cgi, index_file ? index_file : "")); is_cgi, index_file ? index_file : ""));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment