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
a6c05a9e
Commit
a6c05a9e
authored
Mar 24, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed handle_propfind() to report only dir entry when listing dir
parent
94f63787
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
mongoose.c
mongoose.c
+2
-5
No files found.
mongoose.c
View file @
a6c05a9e
...
@@ -3187,12 +3187,9 @@ static void handle_propfind(struct connection *conn, const char *path,
...
@@ -3187,12 +3187,9 @@ static void handle_propfind(struct connection *conn, const char *path,
int
i
,
num_entries
=
scan_directory
(
conn
,
path
,
&
arr
);
int
i
,
num_entries
=
scan_directory
(
conn
,
path
,
&
arr
);
for
(
i
=
0
;
i
<
num_entries
;
i
++
)
{
for
(
i
=
0
;
i
<
num_entries
;
i
++
)
{
char
buf
[
MAX_PATH_SIZE
],
buf2
[
sizeof
(
buf
)
*
3
];
char
buf
[
MAX_PATH_SIZE
*
3
];
struct
dir_entry
*
de
=
&
arr
[
i
];
struct
dir_entry
*
de
=
&
arr
[
i
];
mg_url_encode
(
de
->
file_name
,
buf
,
sizeof
(
buf
)
-
1
);
mg_snprintf
(
buf
,
sizeof
(
buf
),
"%s%s"
,
de
->
conn
->
mg_conn
.
uri
,
de
->
file_name
);
mg_url_encode
(
buf
,
buf2
,
sizeof
(
buf2
)
-
1
);
print_props
(
conn
,
buf
,
&
de
->
st
);
print_props
(
conn
,
buf
,
&
de
->
st
);
}
}
}
}
...
...
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