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
40a94d33
Commit
40a94d33
authored
Jan 14, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http: fixed for url like http://host[:port] (ie without path)
parent
c8630200
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/access/http.c
modules/access/http.c
+7
-2
No files found.
modules/access/http.c
View file @
40a94d33
...
...
@@ -2,7 +2,7 @@
* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* $Id: http.c,v 1.5
3 2004/01/09 15:26:58 hartman
Exp $
* $Id: http.c,v 1.5
4 2004/01/14 15:40:57 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -467,10 +467,15 @@ static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable, off_t *pi_
}
else
{
char
*
psz_path
=
p_sys
->
url
.
psz_path
;
if
(
!
psz_path
||
!*
psz_path
)
{
psz_path
=
"/"
;
}
net_Printf
(
VLC_OBJECT
(
p_input
),
p_sys
->
fd
,
"GET %s HTTP/1.%d
\r\n
"
"Host: %s
\r\n
"
,
p
_sys
->
url
.
p
sz_path
,
p_sys
->
i_version
,
p_sys
->
url
.
psz_host
);
psz_path
,
p_sys
->
i_version
,
p_sys
->
url
.
psz_host
);
}
/* User Agent */
net_Printf
(
VLC_OBJECT
(
p_input
),
p_sys
->
fd
,
"User-Agent: %s
\r\n
"
,
p_sys
->
psz_user_agent
);
...
...
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