use correct method for key query

This commit is contained in:
Keith Wait 2018-09-09 19:54:26 -05:00
parent 752148e0c8
commit 1bee3d0604

View File

@ -219,7 +219,7 @@ public class NanoHTTPDWebserver extends NanoHTTPD {
Response response = null;
Log.d(this.getClass().getName(), "responseObject: " + responseObject.toString());
if (responseObject.containsKey("path")) {
if (responseObject.has("path")) {
// TODO should specify a more correct mime-type
try {
return serveFile(session.getHeaders(), new File(responseObject.getString("path")), responseObject.getString("type"));