Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
cd9e179f
Commit
cd9e179f
authored
Jan 09, 2017
by
Deomid Ryabkov
Committed by
Cesanta Bot
Jan 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format for previous commit
PUBLISHED_FROM=609ef3587e4293b0cdbf865cfc466bbb85233361
parent
0ba28e61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
mongoose.c
mongoose.c
+7
-5
No files found.
mongoose.c
View file @
cd9e179f
...
...
@@ -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://"
,
"https://"
,
purl
,
&
path
,
NULL
/* user */
,
NULL
/* pass */
,
&
addr
);
LOG
(
LL_DEBUG
,
(
"Proxying %.*s to %s (rule: %.*s)"
,
(
int
)
hm
->
uri
.
len
,
hm
->
uri
.
p
,
purl
,
(
int
)
mount
.
len
,
mount
.
p
));
LOG
(
LL_DEBUG
,
(
"Proxying %.*s to %s (rule: %.*s)"
,
(
int
)
hm
->
uri
.
len
,
hm
->
uri
.
p
,
purl
,
(
int
)
mount
.
len
,
mount
.
p
));
if
(
be
==
NULL
)
{
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,
}
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
));
return
ok
;
}
...
...
@@ -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
),
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
,
is_cgi
,
index_file
?
index_file
:
""
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment