about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-02-13T08·55+0100
committerVincent Ambo <tazjin@gmail.com>2017-02-13T08·55+0100
commit6dcb0f4b2bddc583212995397d6c6e1ec14adc58 (patch)
tree2f52e57fd1f64a36bb21dc5c56581e9a1c649e42 /main.go
parent7824e0e7e34a4b5245f817fb70da53d4bcd707c7 (diff)
fix urls: Escape values in URLs
For usernames and passwords containing special characters the URL parameters
must be escaped.

Because the entire URI is just query parameters I've opted for using net/url.Values
for the entire URI.

Fixes #1
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index fd74e8b457fe..a7ab65d3d196 100644
--- a/main.go
+++ b/main.go
@@ -62,6 +62,7 @@ func readCredentials() (string, string, error) {
 
 	fmt.Printf("Password: ")
 	password, err := terminal.ReadPassword(syscall.Stdin)
+	fmt.Println()
 
 	// If an error occured, I don't care about which one it is.
 	return strings.TrimSpace(username), strings.TrimSpace(string(password)), err