Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
fb2e2f05
Commit
fb2e2f05
authored
Apr 22, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of [15290] and [15297]
parent
1e32fa6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
configure.ac
configure.ac
+1
-1
src/network/httpd.c
src/network/httpd.c
+7
-6
No files found.
configure.ac
View file @
fb2e2f05
...
...
@@ -5130,7 +5130,7 @@ dnl
if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"
then
AC_CHECK_LIB(unicows, LoadUnicowsSymbol, [
VLC_ADD_LDFLAGS([vlc],[-lunicows])
VLC_ADD_LDFLAGS([vlc],[-
Wl,--exclude-libs,libunicows.a -
lunicows])
])
fi
...
...
src/network/httpd.c
View file @
fb2e2f05
...
...
@@ -2232,7 +2232,7 @@ static void httpd_HostThread( httpd_host_t *host )
/* FIXME: lots of code duplication */
p
+=
sprintf
(
(
char
*
)
p
,
"<?xml version=
\"
1.0
\"
encoding=
\"
ascii
\"
?>"
"<?xml version=
\"
1.0
\"
encoding=
\"
us-
ascii
\"
?>"
"<!DOCTYPE html PUBLIC
\"
-//W3C//DTD XHTML 1.0 Strict//EN
\"
"
"
\"
http://www.w3.org/TR/xhtml10/DTD/xhtml10strict.dtd
\"
>
\n
"
"<html>
\n
"
...
...
@@ -2242,7 +2242,7 @@ static void httpd_HostThread( httpd_host_t *host )
"<body>
\n
"
"<h1>403 Forbidden (%s)</h1>
\n
"
"<hr />
\n
"
"<
a href=
\"
http://www.videolan.org
\"
>VideoLAN</a
>
\n
"
"<
p><a href=
\"
http://www.videolan.org
\"
>VideoLAN</a></p
>
\n
"
"</body>
\n
"
"</html>
\n
"
,
query
->
psz_url
);
}
...
...
@@ -2252,7 +2252,7 @@ static void httpd_HostThread( httpd_host_t *host )
answer
->
psz_status
=
strdup
(
"Authorization Required"
);
p
+=
sprintf
(
(
char
*
)
p
,
"<?xml version=
\"
1.0
\"
encoding=
\"
ascii
\"
?>"
"<?xml version=
\"
1.0
\"
encoding=
\"
us-
ascii
\"
?>"
"<!DOCTYPE html PUBLIC
\"
-//W3C//DTD XHTML 1.0 Strict//EN
\"
"
"
\"
http://www.w3.org/TR/xhtml10/DTD/xhtml10strict.dtd
\"
>
\n
"
"<html>
\n
"
...
...
@@ -2262,7 +2262,7 @@ static void httpd_HostThread( httpd_host_t *host )
"<body>
\n
"
"<h1>401 Authorization Required (%s)</h1>
\n
"
"<hr />
\n
"
"<
a href=
\"
http://www.videolan.org
\"
>VideoLAN</a
>
\n
"
"<
p><a href=
\"
http://www.videolan.org
\"
>VideoLAN</a></p
>
\n
"
"</body>
\n
"
"</html>
\n
"
,
query
->
psz_url
);
}
...
...
@@ -2273,7 +2273,7 @@ static void httpd_HostThread( httpd_host_t *host )
answer
->
psz_status
=
strdup
(
"Not found"
);
p
+=
sprintf
(
(
char
*
)
p
,
"<?xml version=
\"
1.0
\"
encoding=
\"
ascii
\"
?>"
"<?xml version=
\"
1.0
\"
encoding=
\"
us-
ascii
\"
?>"
"<!DOCTYPE html PUBLIC
\"
-//W3C//DTD XHTML 1.0 Strict//EN
\"
"
"
\"
http://www.w3.org/TR/xhtml10/DTD/xhtml10strict.dtd
\"
>
\n
"
"<html>
\n
"
...
...
@@ -2283,7 +2283,7 @@ static void httpd_HostThread( httpd_host_t *host )
"<body>
\n
"
"<h1>404 Resource not found(%s)</h1>
\n
"
"<hr />
\n
"
"<
a href=
\"
http://www.videolan.org
\"
>VideoLAN</a
>
\n
"
"<
p><a href=
\"
http://www.videolan.org
\"
> VideoLAN</a></p
>
\n
"
"</body>
\n
"
"</html>
\n
"
,
query
->
psz_url
);
}
...
...
@@ -2291,6 +2291,7 @@ static void httpd_HostThread( httpd_host_t *host )
answer
->
i_body
=
p
-
answer
->
p_body
;
cl
->
i_buffer
=
-
1
;
/* Force the creation of the answer in httpd_ClientSend */
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
httpd_MsgAdd
(
answer
,
"Content-Type"
,
"%s"
,
"text/html"
);
}
cl
->
i_state
=
HTTPD_CLIENT_SENDING
;
...
...
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