Index: webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java |
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java |
index ee2a4ab2c5245016b0f51f176d5fc38fa4da391b..1f0b8bb78ee64529d7c0d81f7041b88ef56c401b 100644 |
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java |
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java |
@@ -38,8 +38,7 @@ public class AsyncHttpURLConnection { |
void onHttpComplete(String response); |
} |
- public AsyncHttpURLConnection(String method, String url, String message, |
- AsyncHttpEvents events) { |
+ public AsyncHttpURLConnection(String method, String url, String message, AsyncHttpEvents events) { |
this.method = method; |
this.url = url; |
this.message = message; |
@@ -61,8 +60,7 @@ public class AsyncHttpURLConnection { |
private void sendHttpMessage() { |
try { |
- HttpURLConnection connection = |
- (HttpURLConnection) new URL(url).openConnection(); |
+ HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection(); |
byte[] postData = new byte[0]; |
if (message != null) { |
postData = message.getBytes("UTF-8"); |
@@ -96,8 +94,8 @@ public class AsyncHttpURLConnection { |
// Get response. |
int responseCode = connection.getResponseCode(); |
if (responseCode != 200) { |
- events.onHttpError("Non-200 response to " + method + " to URL: " |
- + url + " : " + connection.getHeaderField(null)); |
+ events.onHttpError("Non-200 response to " + method + " to URL: " + url + " : " |
+ + connection.getHeaderField(null)); |
connection.disconnect(); |
return; |
} |
@@ -109,8 +107,7 @@ public class AsyncHttpURLConnection { |
} catch (SocketTimeoutException e) { |
events.onHttpError("HTTP " + method + " to " + url + " timeout"); |
} catch (IOException e) { |
- events.onHttpError("HTTP " + method + " to " + url + " error: " |
- + e.getMessage()); |
+ events.onHttpError("HTTP " + method + " to " + url + " error: " + e.getMessage()); |
} |
} |