fixed wrong post URL
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
package="net.irext.webapi">
|
||||
>
|
||||
|
||||
<application android:allowBackup="true" android:supportsRtl="true">
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public class WebAPIs {
|
||||
|
||||
private static WebAPIs mInstance = null;
|
||||
|
||||
private static final String DEFAULT_ADDRESS = "http://irext.net";
|
||||
private static final String DEFAULT_ADDRESS = "http://srv.irext.net";
|
||||
private static final String DEFAULT_APP = "/irext-server";
|
||||
private static String URL_PREFIX = DEFAULT_ADDRESS + DEFAULT_APP;
|
||||
|
||||
@@ -93,6 +93,7 @@ public class WebAPIs {
|
||||
= MediaType.parse("application/json; charset=utf-8");
|
||||
|
||||
RequestBody body = RequestBody.create(JSON, json);
|
||||
Log.d(TAG, "post URL = " + url);
|
||||
Request request = new Request.Builder()
|
||||
.url(url)
|
||||
.post(body)
|
||||
|
||||
Reference in New Issue
Block a user