Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
b19510a8
Commit
b19510a8
authored
Aug 02, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA HTTP: update httpd creation
parent
7656b8c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
share/lua/intf/http.lua
share/lua/intf/http.lua
+1
-3
No files found.
share/lua/intf/http.lua
View file @
b19510a8
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
--[==========================================================================[
--[==========================================================================[
Configuration options:
Configuration options:
* host: A host to listen on.
* dir: Directory to use as the http interface's root.
* dir: Directory to use as the http interface's root.
* no_error_detail: If set, do not print the Lua error message when generating
* no_error_detail: If set, do not print the Lua error message when generating
a page fails.
a page fails.
...
@@ -312,8 +311,7 @@ local function load_dir(dir,root,parent_acl)
...
@@ -312,8 +311,7 @@ local function load_dir(dir,root,parent_acl)
return
my_acl
return
my_acl
end
end
local
u
=
vlc
.
net
.
url_parse
(
config
.
host
or
"0.0.0.0:8080"
)
h
=
vlc
.
httpd
()
h
=
vlc
.
httpd
(
u
.
host
,
u
.
port
)
local
root_acl
=
load_dir
(
http_dir
)
local
root_acl
=
load_dir
(
http_dir
)
local
a
=
h
:
handler
(
"/art"
,
nil
,
nil
,
root_acl
,
callback_art
,
nil
)
local
a
=
h
:
handler
(
"/art"
,
nil
,
nil
,
root_acl
,
callback_art
,
nil
)
...
...
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