Skip to content

Commit 7368616

Browse files
committed
fix(android): should work now
1 parent b7d28f7 commit 7368616

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/platforms/android/java/com/nativescript/https/OkHttpResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import okhttp3.Response;
2020
import okhttp3.Headers;
2121

22+
import org.json.JSONObject;
23+
2224
public class OkHttpResponse {
2325
private final static String TAG = "OkHttpResponse";
2426
private ResponseBody responseBody;
@@ -458,11 +460,9 @@ public void run() {
458460
public static int getStatusCode(Response response) {
459461
return response.code();
460462
}
461-
462463
public static String getMessage(Response response) {
463464
return response.message();
464465
}
465-
466466
public static String getHeaders(Response response) throws Exception {
467467
JSONObject obj = new JSONObject();
468468
Headers headers = response.headers();

0 commit comments

Comments
 (0)