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
17802735
Commit
17802735
authored
9 years ago
by
Sergey Lyubka
Committed by
Marko Mikulicic
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spiffy config for cc3200
PUBLISHED_FROM=34b3678cb2510adfd5f26183ae7c16aadb97e6c9
parent
d2eb67a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
mongoose.c
mongoose.c
+6
-3
No files found.
mongoose.c
View file @
17802735
...
@@ -4620,8 +4620,6 @@ void mg_send_websocket_handshake(struct mg_connection *nc, const char *uri,
...
@@ -4620,8 +4620,6 @@ void mg_send_websocket_handshake(struct mg_connection *nc, const char *uri,
#endif
/* MG_DISABLE_HTTP_WEBSOCKET */
#endif
/* MG_DISABLE_HTTP_WEBSOCKET */
#ifndef MG_DISABLE_FILESYSTEM
void
mg_send_response_line
(
struct
mg_connection
*
nc
,
int
status_code
,
void
mg_send_response_line
(
struct
mg_connection
*
nc
,
int
status_code
,
const
char
*
extra_headers
)
{
const
char
*
extra_headers
)
{
const
char
*
status_message
=
"OK"
;
const
char
*
status_message
=
"OK"
;
...
@@ -4659,12 +4657,17 @@ void mg_send_head(struct mg_connection *c, int status_code,
...
@@ -4659,12 +4657,17 @@ void mg_send_head(struct mg_connection *c, int status_code,
mg_send
(
c
,
"
\r\n
"
,
2
);
mg_send
(
c
,
"
\r\n
"
,
2
);
}
}
#ifdef MG_DISABLE_FILESYSTEM
void
mg_serve_http
(
struct
mg_connection
*
nc
,
struct
http_message
*
hm
,
struct
mg_serve_http_opts
opts
)
{
mg_send_head
(
nc
,
501
,
0
,
NULL
);
}
#else
static
void
send_http_error
(
struct
mg_connection
*
nc
,
int
code
,
static
void
send_http_error
(
struct
mg_connection
*
nc
,
int
code
,
const
char
*
reason
)
{
const
char
*
reason
)
{
(
void
)
reason
;
(
void
)
reason
;
mg_send_head
(
nc
,
code
,
0
,
NULL
);
mg_send_head
(
nc
,
code
,
0
,
NULL
);
}
}
#ifndef MG_DISABLE_SSI
#ifndef MG_DISABLE_SSI
static
void
send_ssi_file
(
struct
mg_connection
*
,
const
char
*
,
FILE
*
,
int
,
static
void
send_ssi_file
(
struct
mg_connection
*
,
const
char
*
,
FILE
*
,
int
,
const
struct
mg_serve_http_opts
*
);
const
struct
mg_serve_http_opts
*
);
...
...
This diff is collapsed.
Click to expand it.
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