Skip to content

Commit 3e0b174

Browse files
gsmetjmartisk
authored andcommitted
Implement authority(boolean real) in ForwardedServerRequestWrapper
We override the authority here so we need to be extra careful. (cherry picked from commit 7ca2b3f)
1 parent eff88af commit 3e0b174

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedServerRequestWrapper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ public HostAndPort authority() {
197197
return forwardedParser.authority();
198198
}
199199

200+
@Override
201+
public HostAndPort authority(boolean real) {
202+
if (real) {
203+
return delegate.authority();
204+
}
205+
return this.authority();
206+
}
207+
200208
@Override
201209
public boolean isValidAuthority() {
202210
return forwardedParser.authority() != null;

0 commit comments

Comments
 (0)