handle http/1 host header in http/2

This commit is contained in:
Greg Wilkins 2014-08-05 09:21:27 +10:00
parent 20925ded97
commit 48d68a4916
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,12 @@ public class MetaDataBuilder
_authority=(field instanceof HostPortHttpField)?((HostPortHttpField)field):new AuthorityHttpField(field.getValue()); _authority=(field instanceof HostPortHttpField)?((HostPortHttpField)field):new AuthorityHttpField(field.getValue());
break; break;
case HOST:
if (_authority==null)
_authority=(field instanceof HostPortHttpField)?((HostPortHttpField)field):new AuthorityHttpField(field.getValue());
_fields.add(field);
break;
case C_PATH: case C_PATH:
_path = field.getValue(); _path = field.getValue();
break; break;