aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gleam/uri.gleam3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gleam/uri.gleam b/src/gleam/uri.gleam
index 2a5c190..9d78fe9 100644
--- a/src/gleam/uri.gleam
+++ b/src/gleam/uri.gleam
@@ -65,6 +65,9 @@ pub fn do_parse(uri_string: String) -> Result(Uri, Nil) {
query_with_question_mark: query,
fragment: fragment,
)) -> {
+ // TODO: instead of splitting the authority as a second step we can avoid
+ // going over this part of the string twice and incorporate the parsing in
+ // the main loop.
let AuthorityPieces(userinfo: userinfo, host: host, port: port) =
split_authority(authority_with_slashes)
Ok(Uri(