Skip to content

Commit a7c310f

Browse files
committed
src: reset _type on URLHost::Reset() call
1 parent 4a2adb0 commit a7c310f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node_url.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class URLHost {
9999
case HostType::H_OPAQUE: value_.opaque.~string(); break;
100100
default: break;
101101
}
102+
type_ = HostType::H_FAILED;
102103
}
103104

104105
// Setting the string members of the union with = is brittle because

0 commit comments

Comments
 (0)