Skip to content

Commit

Permalink
use correct method for key query
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilDrW committed Sep 10, 2018
1 parent 752148e commit 1bee3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/NanoHTTPDWebserver.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public Response serve(IHTTPSession session) {
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"));
Expand Down

0 comments on commit 1bee3d0

Please sign in to comment.