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
910aee7f
Commit
910aee7f
authored
Dec 21, 2015
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enable mongosoe FS support on ESP
PUBLISHED_FROM=cfa1c79bb5429feddf38c68c25195b97deef9a62
parent
97063937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mongoose.c
mongoose.c
+3
-1
No files found.
mongoose.c
View file @
910aee7f
...
@@ -5519,7 +5519,7 @@ static void handle_propfind(struct mg_connection *nc, const char *path,
...
@@ -5519,7 +5519,7 @@ static void handle_propfind(struct mg_connection *nc, const char *path,
static
void
handle_mkcol
(
struct
mg_connection
*
nc
,
const
char
*
path
,
static
void
handle_mkcol
(
struct
mg_connection
*
nc
,
const
char
*
path
,
struct
http_message
*
hm
)
{
struct
http_message
*
hm
)
{
int
status_code
=
500
;
int
status_code
=
500
;
if
(
mg_get_http_header
(
hm
,
"Content-Length"
)
!=
NULL
)
{
if
(
hm
->
body
.
len
!=
(
size_t
)
~
0
&&
hm
->
body
.
len
>
0
)
{
status_code
=
415
;
status_code
=
415
;
}
else
if
(
!
mg_mkdir
(
path
,
0755
))
{
}
else
if
(
!
mg_mkdir
(
path
,
0755
))
{
status_code
=
201
;
status_code
=
201
;
...
@@ -5529,6 +5529,8 @@ static void handle_mkcol(struct mg_connection *nc, const char *path,
...
@@ -5529,6 +5529,8 @@ static void handle_mkcol(struct mg_connection *nc, const char *path,
status_code
=
403
;
status_code
=
403
;
}
else
if
(
errno
==
ENOENT
)
{
}
else
if
(
errno
==
ENOENT
)
{
status_code
=
409
;
status_code
=
409
;
}
else
{
status_code
=
500
;
}
}
send_http_error
(
nc
,
status_code
,
NULL
);
send_http_error
(
nc
,
status_code
,
NULL
);
}
}
...
...
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