]> iEval git - fonbot.git/commitdiff
Do not "fix" HTTP message when not broken
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 29 Jul 2013 08:29:37 +0000 (11:29 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 29 Jul 2013 08:29:37 +0000 (11:29 +0300)
src/ro/ieval/fonbot/HttpCallExecutableRunnable.java

index a513ed63ca8efbf1fe034e3731a317da72a291b0..541a673f19b46f8d24ab27c78714a0c5143af08b 100644 (file)
@@ -163,7 +163,7 @@ public final class HttpCallExecutableRunnable extends ExecutableRunnable{
                        else if(message != null && callback != null){
                                if(message.charAt(message.length()-1) == ')')//message is (something)
                                        message=message.substring(1, message.length()-1);
-                               else
+                               else if(message.charAt(0) == '(')//message is (something) something else
                                        message=message.substring(message.indexOf(')')+2);
                                callback.onResult(conn.getResponseCode(), message, conn.getResponseCode() == 200 ? conn.getInputStream() : null);
                        }
This page took 0.029081 seconds and 4 git commands to generate.