Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
40a94d33
Commit
40a94d33
authored
Jan 14, 2004
by
Laurent Aimar
Browse files
* http: fixed for url like
http://host[:port]
(ie without path)
parent
c8630200
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
.
psz_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
Supports
Markdown
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