Skip to content

Commit 4f6190d

Browse files
Fix router paths
1 parent c6a5dae commit 4f6190d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fcut.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ local httpContexts = {
319319
lastModified = file:lastModified(),
320320
}
321321
end,
322-
['writeFile(requestJson)?method=POST&Content-Type=application/json'] = function(exchange, obj)
322+
['writeFile(requestJson)?method=POST&:Content-Type=application/json'] = function(exchange, obj)
323323
local f = File:new(obj.path)
324324
if not obj.overwrite and f:exists() then
325325
HttpExchange.forbidden(exchange, 'The file exists')
@@ -352,7 +352,7 @@ local httpContexts = {
352352
HttpExchange.notFound(exchange, 'Export not found')
353353
return false
354354
end,
355-
['export(requestJson)?method=POST&Content-Type=application/json'] = function(exchange, parameters)
355+
['export(requestJson)?method=POST&:Content-Type=application/json'] = function(exchange, parameters)
356356
local commands = ffmpeg:createCommands(parameters.filename, parameters.parts, parameters.options or {}, parameters.parameters or {})
357357
local exportId = strings.formatInteger(system.currentTimeMillis(), 64)
358358
logger:info('export '..exportId..' '..tostring(#commands)..' command(s)')
@@ -422,10 +422,10 @@ else
422422
local httpServer = webview:getHttpServer()
423423
logger:info('FCut HTTP Server available at http://localhost:%s/', (select(2, httpServer:getAddress())))
424424
httpServer:createContext('/webview/(.*)', RestHttpHandler:new({
425-
['fullscreen(requestJson)?method=POST&Content-Type=application/json'] = function(exchange, fullscreen)
425+
['fullscreen(requestJson)?method=POST&:Content-Type=application/json'] = function(exchange, fullscreen)
426426
webview:fullscreen(fullscreen == true);
427427
end,
428-
['selectFiles(requestJson)?method=POST&Content-Type=application/json'] = function(exchange, obj)
428+
['selectFiles(requestJson)?method=POST&:Content-Type=application/json'] = function(exchange, obj)
429429
if serialWorker then
430430
return serialWorker:process(obj)
431431
end

0 commit comments

Comments
 (0)