From e0f58caa7156386dc67710c7710e3c6ab856379a Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Thu, 25 Jul 2019 17:39:41 +0200 Subject: [PATCH] Fixes --- src/etherpad2latex.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etherpad2latex.nim b/src/etherpad2latex.nim index 96a487c..a2d87df 100644 --- a/src/etherpad2latex.nim +++ b/src/etherpad2latex.nim @@ -5,7 +5,7 @@ import jester proc getContent(pad:string, etherpadUrl:string):string = var client = newHTTPClient() - result = client.getContent(etherpadUrl & "pad/p/" & pad & "/export/txt") + result = client.getContent(etherpadUrl & "p/" & pad & "/export/txt") when isMainModule: @@ -26,7 +26,7 @@ when isMainModule: let (output, exitCode) = execCmdEx(quoteShellCommand(["pdflatex", "-halt-on-error", "etherpad.tex"])) if exitCode == 0: - sendFile("etherpad.pdf") + resp(Http200, readFile("etherpad.pdf"), contentType = "application/pdf") else: resp output