Upgrade to the latest server protocol.
[fonbot.git] / src / ro / ieval / fonbot / RemoteCrashdumpHandler.java
index 4f28d843d06bcd4725b972f53a54d31122410095..e228869a5fde4180acd597ab348daf8d1980f52d 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 SendHttpMessageAsyncTask("/crashdump", toNonNull(Collections.<Header>emptyList()),
+                               toNonNull(context), toNonNull(baos.toByteArray())).execute();
 
                try {
                        baos.close();
This page took 0.010086 seconds and 4 git commands to generate.