diff options
Diffstat (limited to 'src/types/url.nim')
-rw-r--r-- | src/types/url.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/url.nim b/src/types/url.nim index deeea08b..abb304b3 100644 --- a/src/types/url.nim +++ b/src/types/url.nim @@ -1246,12 +1246,12 @@ proc setProtocol*(url: URL; s: string) {.jsfset: "protocol".} = discard basicParseURL(s & ':', url = url, stateOverride = some(usSchemeStart)) -proc setUsername(url: URL; username: string) {.jsfset: "username".} = +proc setUsername*(url: URL; username: string) {.jsfset: "username".} = if not url.canHaveUsernamePasswordPort: return url.username = username.percentEncode(UserInfoPercentEncodeSet) -proc setPassword(url: URL; password: string) {.jsfset: "password".} = +proc setPassword*(url: URL; password: string) {.jsfset: "password".} = if not url.canHaveUsernamePasswordPort: return url.password = password.percentEncode(UserInfoPercentEncodeSet) |