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 0ebe035 commit 42a89b9Copy full SHA for 42a89b9
src/gleam/uri.gleam
@@ -85,18 +85,7 @@ pub fn parse(uri_string: String) -> Result(Uri, Nil) {
85
// TODO: This is not perfect and will be more permissive than its Erlang
86
// counterpart, ideally we want to replicate Erlang's implementation on the js
87
// target as well.
88
- let default_pieces =
89
- Uri(
90
- scheme: None,
91
- userinfo: None,
92
- host: None,
93
- port: None,
94
- path: "",
95
- query: None,
96
- fragment: None,
97
- )
98
-
99
- parse_scheme_loop(uri_string, uri_string, default_pieces, 0)
+ parse_scheme_loop(uri_string, uri_string, empty, 0)
100
}
101
102
fn parse_scheme_loop(
0 commit comments