Skip to content

Commit

Permalink
Bodge support for imprecise gateway requirements
Browse files Browse the repository at this point in the history
They are missing HTTP methods
  • Loading branch information
FloBoJa committed Dec 2, 2023
1 parent feddad4 commit 45bc626
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ public boolean isPartOf(String iface) {
ifaceHttpMethod = Optional.of(HTTPMethod.valueOf(httpMethodName));
}

if (interfacePath.size() == path.size() && ifaceHttpMethod.isPresent()
// TODO: If this.httpMethod.isEmpty(), see it as part of the other interface anyway.
// This allows some imprecision from ECMAScript detection
if (interfacePath.size() == path.size() && ifaceHttpMethod.isPresent() && this.httpMethod.isPresent()
&& !ifaceHttpMethod.equals(this.httpMethod)) {
return false;
}
Expand Down

0 comments on commit 45bc626

Please sign in to comment.