Commit 84604b29 authored by renjie's avatar renjie

Merge branch 'dev-zrj' into 'staging'

Dev zrj

See merge request !97
parents 5089b823 ba4fc3bc
package com.edgec.browserbackend.common.utils; package com.edgec.browserbackend.common.utils;
import com.edgec.browserbackend.common.commons.utils.NotifyUtils; import com.edgec.browserbackend.common.commons.utils.NotifyUtils;
import org.apache.http.HttpEntity; import org.apache.http.HttpEntity;
import org.apache.http.HttpHost; import org.apache.http.HttpHost;
...@@ -82,13 +83,11 @@ public class Trans { ...@@ -82,13 +83,11 @@ public class Trans {
HttpEntity entry = response.getEntity(); HttpEntity entry = response.getEntity();
if(entry != null) if (entry != null) {
{
InputStreamReader is = new InputStreamReader(entry.getContent()); InputStreamReader is = new InputStreamReader(entry.getContent());
BufferedReader br = new BufferedReader(is); BufferedReader br = new BufferedReader(is);
String str = null; String str = null;
while((str = br.readLine()) != null) while ((str = br.readLine()) != null) {
{
sb.append(str.trim()); sb.append(str.trim());
} }
br.close(); br.close();
...@@ -105,6 +104,5 @@ public class Trans { ...@@ -105,6 +104,5 @@ public class Trans {
} finally { } finally {
httpGet.releaseConnection(); httpGet.releaseConnection();
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment