Skip to content

Commit

Permalink
Issue #592
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Oct 5, 2016
1 parent be1726e commit 6ca387a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -127,7 +127,7 @@ public void parsedHeader(HttpField field)
break;

case HOST:
if (!(field instanceof HostPortHttpField))
if (!(field instanceof HostPortHttpField) && value!=null && !value.isEmpty())
field = new HostPortHttpField(value);
break;

Expand Down

0 comments on commit 6ca387a

Please sign in to comment.