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
eb993599
Commit
eb993599
authored
Apr 21, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error pages
parent
7bac1dd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/network/httpd.c
src/network/httpd.c
+7
-6
No files found.
src/network/httpd.c
View file @
eb993599
...
...
@@ -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