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
905413b6
Commit
905413b6
authored
Jan 24, 2012
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue 300
parent
ed707936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mongoose.c
mongoose.c
+2
-2
mongoose.h
mongoose.h
+5
-1
No files found.
mongoose.c
View file @
905413b6
...
@@ -2570,8 +2570,8 @@ static void handle_file_request(struct mg_connection *conn, const char *path,
...
@@ -2570,8 +2570,8 @@ static void handle_file_request(struct mg_connection *conn, const char *path,
"Connection: %s
\r\n
"
"Connection: %s
\r\n
"
"Accept-Ranges: bytes
\r\n
"
"Accept-Ranges: bytes
\r\n
"
"%s
\r\n
"
,
"%s
\r\n
"
,
conn
->
request_info
.
status_code
,
msg
,
date
,
lm
,
etag
,
conn
->
request_info
.
status_code
,
msg
,
date
,
lm
,
etag
,
(
int
)
mime_vec
.
len
,
mime_vec
.
len
,
mime_vec
.
ptr
,
cl
,
suggest_connection_header
(
conn
),
range
);
mime_vec
.
ptr
,
cl
,
suggest_connection_header
(
conn
),
range
);
if
(
strcmp
(
conn
->
request_info
.
request_method
,
"HEAD"
)
!=
0
)
{
if
(
strcmp
(
conn
->
request_info
.
request_method
,
"HEAD"
)
!=
0
)
{
send_file_data
(
conn
,
fp
,
cl
);
send_file_data
(
conn
,
fp
,
cl
);
...
...
mongoose.h
View file @
905413b6
...
@@ -160,7 +160,11 @@ int mg_write(struct mg_connection *, const void *buf, size_t len);
...
@@ -160,7 +160,11 @@ int mg_write(struct mg_connection *, const void *buf, size_t len);
// Note that mg_printf() uses internal buffer of size IO_BUF_SIZE
// Note that mg_printf() uses internal buffer of size IO_BUF_SIZE
// (8 Kb by default) as temporary message storage for formatting. Do not
// (8 Kb by default) as temporary message storage for formatting. Do not
// print data that is bigger than that, otherwise it will be truncated.
// print data that is bigger than that, otherwise it will be truncated.
int
mg_printf
(
struct
mg_connection
*
,
const
char
*
fmt
,
...);
int
mg_printf
(
struct
mg_connection
*
,
const
char
*
fmt
,
...)
#ifdef __GNUC__
__attribute__
((
format
(
printf
,
2
,
3
)))
#endif
;
// Send contents of the entire file together with HTTP headers.
// Send contents of the entire file together with HTTP headers.
...
...
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