diff --git a/launcher-impl/glassfish/src/main/java/org/glassfish/grizzly/http/server/Request.java b/launcher-impl/glassfish/src/main/java/org/glassfish/grizzly/http/server/Request.java index 70bfc75..d5cdd41 100644 --- a/launcher-impl/glassfish/src/main/java/org/glassfish/grizzly/http/server/Request.java +++ b/launcher-impl/glassfish/src/main/java/org/glassfish/grizzly/http/server/Request.java @@ -406,8 +406,10 @@ public void initialize(final HttpRequestPacket request, final FilterChainContext if (disableSchemeMappingValidation) { scheme = suggestedScheme; } else { - if (suggestedScheme == null || "http".equalsIgnoreCase(suggestedScheme) || "https".equalsIgnoreCase(suggestedScheme)) { - scheme = suggestedScheme; + if (suggestedScheme == null) { + scheme = null; + } else if ("https".equalsIgnoreCase(suggestedScheme)) { + scheme = "https"; } else { scheme = "http"; }