We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8ed2c commit 0b07c82Copy full SHA for 0b07c82
src/parser.rs
@@ -1043,14 +1043,20 @@ impl<'a> Parser<'a> {
1043
&mut self,
1044
input: Input<'i>,
1045
) -> ParseResult<(bool, HostInternal, Input<'i>)> {
1046
- let (has_host, host_str, remaining) = Parser::file_host(input)?;
+ let has_host;
1047
+ let (_, host_str, remaining) = Parser::file_host(input)?;
1048
let host = if host_str.is_empty() {
1049
+ has_host = false;
1050
HostInternal::None
1051
} else {
1052
match Host::parse(&host_str)? {
- Host::Domain(ref d) if d == "localhost" => HostInternal::None,
1053
+ Host::Domain(ref d) if d == "localhost" => {
1054
1055
+ HostInternal::None
1056
+ }
1057
host => {
1058
write!(&mut self.serialization, "{}", host).unwrap();
1059
+ has_host = true;
1060
host.into()
1061
}
1062
0 commit comments