]> iEval git - fonbot.git/blobdiff - src/ro/ieval/fonbot/RemoteCrashdumpHandler.java
Merge SendHttpMessageAsyncTask and PollServerAsyncTask
[fonbot.git] / src / ro / ieval / fonbot / RemoteCrashdumpHandler.java
index 4f28d843d06bcd4725b972f53a54d31122410095..e09e31e36f1e7325109174a1ec8d4bcb4aa68d74 100644 (file)
@@ -6,7 +6,7 @@ import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.PrintStream;
 import java.lang.Thread.UncaughtExceptionHandler;
-import java.util.Arrays;
+import java.util.Collections;
 
 import org.eclipse.jdt.annotation.Nullable;
 
@@ -59,9 +59,8 @@ final class RemoteCrashdumpHandler implements UncaughtExceptionHandler {
                ex.printStackTrace(pw);
                pw.close();
 
-               new SendHttpMessageAsyncTask(toNonNull(Arrays.asList(
-                               new Header("X-Action", "CRASHDUMP")
-                               )), toNonNull(context), toNonNull(baos.toByteArray())).execute();
+               new HttpCallExecutableRunnable("/crashdump", toNonNull(Collections.<Header>emptyList()),
+                               toNonNull(context), null, toNonNull(baos.toByteArray())).execute();
 
                try {
                        baos.close();
This page took 0.025043 seconds and 4 git commands to generate.