Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
d5eebbe1
Commit
d5eebbe1
authored
Mar 06, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* httpd: fixed handling of 'Connection: '.
parent
a17b3904
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/misc/httpd.c
src/misc/httpd.c
+10
-4
No files found.
src/misc/httpd.c
View file @
d5eebbe1
...
...
@@ -2,7 +2,7 @@
* httpd.c
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id
: httpd.c,v 1.1 2004/03/03 13:23:47 fenrir Exp
$
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -449,6 +449,12 @@ static int httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
}
file
->
pf_fill
(
file
->
p_sys
,
file
,
psz_args
,
&
answer
->
p_body
,
&
answer
->
i_body
);
}
/* We respect client request */
if
(
strcmp
(
httpd_MsgGet
(
&
cl
->
query
,
"Connection"
),
""
)
)
{
httpd_MsgAdd
(
answer
,
"Connection"
,
httpd_MsgGet
(
&
cl
->
query
,
"Connection"
)
);
}
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
return
VLC_SUCCESS
;
...
...
@@ -1219,7 +1225,7 @@ static void httpd_ClientInit( httpd_client_t *cl )
{
cl
->
i_state
=
HTTPD_CLIENT_RECEIVING
;
cl
->
i_activity_date
=
mdate
();
cl
->
i_activity_timeout
=
1
50
0000000LL
;
cl
->
i_activity_timeout
=
10000000LL
;
cl
->
i_buffer_size
=
10000
;
cl
->
i_buffer
=
0
;
cl
->
p_buffer
=
malloc
(
cl
->
i_buffer_size
);
...
...
@@ -1943,8 +1949,8 @@ static void httpd_HostThread( httpd_host_t *host )
{
cl
->
url
=
NULL
;
if
(
(
cl
->
query
.
i_proto
==
HTTPD_PROTO_HTTP
&&
(
!
strcasecmp
(
httpd_MsgGet
(
&
cl
->
query
,
"Connection"
),
"Keep-Alive"
)
||
(
cl
->
answer
.
i_version
==
1
&&
strcasecmp
(
httpd_MsgGet
(
&
cl
->
query
,
"Connection"
),
"Close"
)
)
)
)
||
(
(
cl
->
answer
.
i_version
==
0
&&
!
strcasecmp
(
httpd_MsgGet
(
&
cl
->
answer
,
"Connection"
),
"Keep-Alive"
)
)
||
(
cl
->
answer
.
i_version
==
1
&&
strcasecmp
(
httpd_MsgGet
(
&
cl
->
answer
,
"Connection"
),
"Close"
)
)
)
)
||
(
cl
->
query
.
i_proto
==
HTTPD_PROTO_RTSP
&&
strcasecmp
(
httpd_MsgGet
(
&
cl
->
query
,
"Connection"
),
"Close"
)
&&
strcasecmp
(
httpd_MsgGet
(
&
cl
->
answer
,
"Connection"
),
"Close"
)
)
)
...
...
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