Skip to content

Commit 7ca2b3f

Browse files
gsmetjponge
authored andcommitted
Implement authority(boolean real) in ForwardedServerRequestWrapper
We override the authority here so we need to be extra careful.
1 parent e75a328 commit 7ca2b3f

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)