correct implementation errors and readme text

This commit is contained in:
Keith Wait
2018-09-03 10:55:14 -05:00
parent 60f55066ce
commit 128933f721
3 changed files with 47 additions and 13 deletions
+2 -1
View File
@@ -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));
}