Skip to content

Commit 98e7ff1

Browse files
author
Gerald Unterrainer
committed
fix bug in getBoolean from context
1 parent bb9e7f5 commit 98e7ff1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<modelVersion>4.0.0</modelVersion>
1919
<artifactId>http-server</artifactId>
20-
<version>0.2.40</version>
20+
<version>0.2.41</version>
2121
<name>HttpServer</name>
2222
<packaging>jar</packaging>
2323

src/main/java/info/unterrainer/commons/httpserver/HandlerUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,6 @@ public boolean convertToBoolean(final String o) {
232232
return false;
233233

234234
String v = o.strip().toLowerCase();
235-
return !v.equals("false") || !v.equals("no") || !v.equals("0");
235+
return !v.equals("false") && !v.equals("no") && !v.equals("0");
236236
}
237237
}

0 commit comments

Comments
 (0)