diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-11-09 16:56:54 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-11-09 16:56:54 +0100 |
| commit | 761a079789e813cfed3a3223e05f66152bfd3a9d (patch) | |
| tree | 95e56c3b46fb0e34152b867a1eb30188b6942b49 /core/net/url.odin | |
| parent | 4116d66c599765a21d0e557250a2ae8f78937844 (diff) | |
Fix net.split_url
Resolves issue #2924
Diffstat (limited to 'core/net/url.odin')
| -rw-r--r-- | core/net/url.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net/url.odin b/core/net/url.odin index ef43d6c9f..53c94d863 100644 --- a/core/net/url.odin +++ b/core/net/url.odin @@ -24,7 +24,7 @@ import "core:encoding/hex" split_url :: proc(url: string, allocator := context.allocator) -> (scheme, host, path: string, queries: map[string]string) { s := url - i := strings.last_index(s, "://") + i := strings.index(s, "://") if i >= 0 { scheme = s[:i] s = s[i+3:] |