Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
c6c67c12
Commit
c6c67c12
authored
Jul 01, 2003
by
Mohammed Adnène Trojette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* little fix, sorry !
parent
cb25689d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/misc/httpd.c
modules/misc/httpd.c
+7
-5
No files found.
modules/misc/httpd.c
View file @
c6c67c12
...
...
@@ -2,7 +2,7 @@
* httpd.c
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: httpd.c,v 1.1
7 2003/07/01 08:30:49
adn Exp $
* $Id: httpd.c,v 1.1
8 2003/07/01 08:55:57
adn Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -465,7 +465,8 @@ static httpd_host_t *_RegisterHost( httpd_sys_t *p_httpt, char *psz_host_addr, i
for
(
i
=
0
;
i
<
p_httpt
->
i_host_count
;
i
++
)
{
if
(
p_httpt
->
host
[
i
]
->
sock
.
sin_port
==
sock
.
sin_port
&&
p_httpt
->
host
[
i
]
->
sock
.
sin_addr
.
s_addr
==
sock
.
sin_addr
.
s_addr
)
(
p_httpt
->
host
[
i
]
->
sock
.
sin_addr
.
s_addr
==
INADDR_ANY
||
p_httpt
->
host
[
i
]
->
sock
.
sin_addr
.
s_addr
==
sock
.
sin_addr
.
s_addr
)
)
{
break
;
}
...
...
@@ -1829,14 +1830,15 @@ search_file:
p_con
->
i_state
=
HTTPD_CONNECTION_SENDING_HEADER
;
p_con
->
i_buffer_size
=
4096
;
p_con
->
i_buffer
=
0
;
/* we send stream header with this one */
if
(
p_con
->
i_http_error
==
200
&&
p_con
->
p_file
->
b_stream
)
{
p_con
->
i_buffer_size
=
4096
+
p_con
->
p_file
->
i_header_size
;
p_con
->
i_buffer_size
+=
p_con
->
p_file
->
i_header_size
;
}
p_con
->
i_buffer_size
=
4096
;
p_con
->
i_buffer
=
0
;
p
=
p_con
->
p_buffer
=
malloc
(
p_con
->
i_buffer_size
);
p
+=
sprintf
(
p
,
"HTTP/1.0 %d %s
\r\n
"
,
p_con
->
i_http_error
,
psz_status
);
...
...
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