aboutsummaryrefslogtreecommitdiffstats
path: root/ncomp-utils-java/src/main/java/org/json/HTTP.java
diff options
context:
space:
mode:
Diffstat (limited to 'ncomp-utils-java/src/main/java/org/json/HTTP.java')
-rw-r--r--ncomp-utils-java/src/main/java/org/json/HTTP.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncomp-utils-java/src/main/java/org/json/HTTP.java b/ncomp-utils-java/src/main/java/org/json/HTTP.java
index ef37d2d..d3f03f7 100644
--- a/ncomp-utils-java/src/main/java/org/json/HTTP.java
+++ b/ncomp-utils-java/src/main/java/org/json/HTTP.java
@@ -95,7 +95,7 @@ public class HTTP {
String t;
t = x.nextToken();
- if (t.toUpperCase().startsWith("HTTP")) {
+ if (t.length() > 3 && t.substring(0,4).equalsIgnoreCase("HTTP")) {
// Response