use correct method for key query
This commit is contained in:
parent
752148e0c8
commit
1bee3d0604
@ -219,7 +219,7 @@ public class NanoHTTPDWebserver extends NanoHTTPD {
|
|||||||
Response response = null;
|
Response response = null;
|
||||||
Log.d(this.getClass().getName(), "responseObject: " + responseObject.toString());
|
Log.d(this.getClass().getName(), "responseObject: " + responseObject.toString());
|
||||||
|
|
||||||
if (responseObject.containsKey("path")) {
|
if (responseObject.has("path")) {
|
||||||
// TODO should specify a more correct mime-type
|
// TODO should specify a more correct mime-type
|
||||||
try {
|
try {
|
||||||
return serveFile(session.getHeaders(), new File(responseObject.getString("path")), responseObject.getString("type"));
|
return serveFile(session.getHeaders(), new File(responseObject.getString("path")), responseObject.getString("type"));
|
||||||
|
Loading…
Reference in New Issue
Block a user