From b0576b34550d405558b9e49e1039a25eeff23fec Mon Sep 17 00:00:00 2001 From: Luis Uguina Date: Sun, 21 Jun 2020 19:16:18 +1000 Subject: [PATCH] Fix: NULL MimeType when sending files without extension (#270) --- src/com/sheepit/client/Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index a1364e97..70ae8b56 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -533,7 +533,7 @@ protected void sendError(int step_, Job job_to_reset_, Error.Type error) { this.log.debug("Sending error to server (type: " + error + ")"); try { - File temp_file = File.createTempFile("farm_", ""); + File temp_file = File.createTempFile("farm_", ".txt"); temp_file.createNewFile(); temp_file.deleteOnExit(); FileOutputStream writer = new FileOutputStream(temp_file);