Skip to content

Commit

Permalink
Merge pull request #520 from iweiss/UNDERTOW-1091
Browse files Browse the repository at this point in the history
[UNDERTOW-1091] Invalid response code for empty host value in request
  • Loading branch information
fl4via committed Jul 30, 2019
2 parents efa90a2 + bb8cd96 commit f99c8db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ private String extractCharset(HeaderMap headers) {
*/
public String getHostName() {
String host = requestHeaders.getFirst(Headers.HOST);
if (host == null) {
if (host == null || "".equals(host.trim())) {
host = getDestinationAddress().getHostString();
} else {
if (host.startsWith("[")) {
Expand Down

0 comments on commit f99c8db

Please sign in to comment.