aboutsummaryrefslogtreecommitdiff
path: root/orig
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-06-02 23:46:28 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-06-02 23:48:02 -0400
commitd90c47ec2cd883204d964a3dc0362bac48f847fc (patch)
tree5e126af17c46a5f98b906be780215dc10ce1f742 /orig
parent2cf52df0d8e94232c9e41c3effac6a5a4b5953c8 (diff)
made the response actually standard
Diffstat (limited to 'orig')
-rw-r--r--orig/minimun5
1 files changed, 3 insertions, 2 deletions
diff --git a/orig/minimun b/orig/minimun
index d4e2b7d..153bbb6 100644
--- a/orig/minimun
+++ b/orig/minimun
@@ -42,7 +42,8 @@ else{
say $fh "\\bye";
-system ('/usr/bin/pdftex', $filename);
+system ('/usr/bin/pdftex', $filename, '>/dev/null');
+unlink "$filename.log";
open(DOC, '<', "$filename.pdf") or do {
print "Content-type: text/html\n";
print "Status: 400 Bad Request Error\n\n";
@@ -52,4 +53,4 @@ open(DOC, '<', "$filename.pdf") or do {
print "Content-type: application/pdf\n\n";
print <DOC>;
close(DOC);
-unlink "$filename.pdf", "$filename.log";
+unlink "$filename.pdf";