Skip to content

Commit 83a3653

Browse files
committed
chore(rockspec): add files plugin to rockspec
1 parent bde032c commit 83a3653

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

example/copas.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ local Downloads = require 'pegasus.plugins.downloads'
2020
-- @tparam[opt] table opts.sslparams the tls based parameters, see the Copas documentation.
2121
-- If not provided, then the connection will be accepted as a plain one.
2222
-- @tparam[opt] table opts.plugins the plugins to use
23-
-- @tparam[opt] function opts.handler the callback function to handle requests
23+
-- @tparam[opt] function opts.callback the callback function to handle requests
2424
-- @tparam[opt] string opts.location the file-path from where to server files
2525
-- @return the server-socket on success, or nil+err on failure
2626
local function newPegasusServer(opts)

rockspecs/pegasus-dev-1.rockspec

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ build = {
4040
['pegasus.compress'] = 'src/pegasus/compress.lua',
4141
['pegasus.plugins.compress'] = 'src/pegasus/plugins/compress.lua',
4242
['pegasus.plugins.downloads'] = 'src/pegasus/plugins/downloads.lua',
43+
['pegasus.plugins.files'] = 'src/pegasus/plugins/files.lua',
4344
['pegasus.plugins.tls'] = 'src/pegasus/plugins/tls.lua',
4445
}
4546
}

0 commit comments

Comments
 (0)