We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents efa90a2 + bb8cd96 commit f99c8dbCopy full SHA for f99c8db
core/src/main/java/io/undertow/server/HttpServerExchange.java
@@ -622,7 +622,7 @@ private String extractCharset(HeaderMap headers) {
622
*/
623
public String getHostName() {
624
String host = requestHeaders.getFirst(Headers.HOST);
625
- if (host == null) {
+ if (host == null || "".equals(host.trim())) {
626
host = getDestinationAddress().getHostString();
627
} else {
628
if (host.startsWith("[")) {
0 commit comments