test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java in calabash-android-0.2.12 vs test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java in calabash-android-0.2.13
- old
+ new
@@ -91,10 +91,15 @@
ByteArrayOutputStream out = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 90, out);
return new NanoHTTPD.Response( HTTP_OK, "image/png", new ByteArrayInputStream(out.toByteArray()));
}
- String commandString = params.getProperty("command");
+ System.out.println("header: "+ header);
+ System.out.println("params: "+ params);
+ System.out.println("files: "+ files);
+
+
+ String commandString = params.getProperty("json");
System.out.println("command: "+ commandString);
String result = toJson(runCommand(commandString));
System.out.println("result:" + result);
return new NanoHTTPD.Response( HTTP_OK, MIME_HTML, result);