@@ -319,7 +319,7 @@ local httpContexts = {
319
319
lastModified = file :lastModified (),
320
320
}
321
321
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 )
323
323
local f = File :new (obj .path )
324
324
if not obj .overwrite and f :exists () then
325
325
HttpExchange .forbidden (exchange , ' The file exists' )
@@ -352,7 +352,7 @@ local httpContexts = {
352
352
HttpExchange .notFound (exchange , ' Export not found' )
353
353
return false
354
354
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 )
356
356
local commands = ffmpeg :createCommands (parameters .filename , parameters .parts , parameters .options or {}, parameters .parameters or {})
357
357
local exportId = strings .formatInteger (system .currentTimeMillis (), 64 )
358
358
logger :info (' export ' .. exportId .. ' ' .. tostring (# commands ).. ' command(s)' )
@@ -422,10 +422,10 @@ else
422
422
local httpServer = webview :getHttpServer ()
423
423
logger :info (' FCut HTTP Server available at http://localhost:%s/' , (select (2 , httpServer :getAddress ())))
424
424
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 )
426
426
webview :fullscreen (fullscreen == true );
427
427
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 )
429
429
if serialWorker then
430
430
return serialWorker :process (obj )
431
431
end
0 commit comments