File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1025,14 +1025,20 @@ impl<'a> Parser<'a> {
10251025 & mut self ,
10261026 input : Input < ' i > ,
10271027 ) -> ParseResult < ( bool , HostInternal , Input < ' i > ) > {
1028- let ( has_host, host_str, remaining) = Parser :: file_host ( input) ?;
1028+ let has_host;
1029+ let ( _, host_str, remaining) = Parser :: file_host ( input) ?;
10291030 let host = if host_str. is_empty ( ) {
1031+ has_host = false ;
10301032 HostInternal :: None
10311033 } else {
10321034 match Host :: parse ( & host_str) ? {
1033- Host :: Domain ( ref d) if d == "localhost" => HostInternal :: None ,
1035+ Host :: Domain ( ref d) if d == "localhost" => {
1036+ has_host = false ;
1037+ HostInternal :: None
1038+ }
10341039 host => {
10351040 write ! ( & mut self . serialization, "{}" , host) . unwrap ( ) ;
1041+ has_host = true ;
10361042 host. into ( )
10371043 }
10381044 }
You can’t perform that action at this time.
0 commit comments