mirror of
https://github.com/bykof/cordova-plugin-webserver.git
synced 2026-04-20 00:02:45 +08:00
correct implementation errors and readme text
This commit is contained in:
@@ -101,7 +101,8 @@ public class Webserver extends CordovaPlugin {
|
||||
}
|
||||
|
||||
private void sendFileResponse(JSONArray args, CallbackContext callbackContext) throws JSONException {
|
||||
this.responses.put('file', args.get(1));
|
||||
Log.d(this.getClass().getName(), "Got sendResponse: " + args.toString());
|
||||
this.responses.put("file", args.get(0));
|
||||
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user