Skip to content

Commit

Permalink
Merge pull request #73 from tnagao7/scheme-mapping-rfc
Browse files Browse the repository at this point in the history
Adapt scheme-mapping to RFC 3986
  • Loading branch information
tnagao7 committed Jun 30, 2023
2 parents 67d3292 + 42fbaeb commit e520079
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit e520079

Please # to comment.