We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc2b3f4 commit 99228e5Copy full SHA for 99228e5
src/parser.rs
@@ -1025,14 +1025,20 @@ impl<'a> Parser<'a> {
1025
&mut self,
1026
input: Input<'i>,
1027
) -> ParseResult<(bool, HostInternal, Input<'i>)> {
1028
- let (has_host, host_str, remaining) = Parser::file_host(input)?;
+ let has_host;
1029
+ let (_, host_str, remaining) = Parser::file_host(input)?;
1030
let host = if host_str.is_empty() {
1031
+ has_host = false;
1032
HostInternal::None
1033
} else {
1034
match Host::parse(&host_str)? {
- Host::Domain(ref d) if d == "localhost" => HostInternal::None,
1035
+ Host::Domain(ref d) if d == "localhost" => {
1036
1037
+ HostInternal::None
1038
+ }
1039
host => {
1040
write!(&mut self.serialization, "{}", host).unwrap();
1041
+ has_host = true;
1042
host.into()
1043
}
1044
0 commit comments