summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-23 16:32:09 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-23 16:32:09 (GMT)
commita42abed52db0006ecd609300bbf064bcb49ea10d (patch)
tree766e390dd94fede09a36be006e49864697bbed8e /rhimport
parent39fd1c441cb18b1430ad954eb4431a2a8bff81c2 (diff)
use URL compativle Base64 encoding for session ids
Diffstat (limited to 'rhimport')
-rw-r--r--rhimport/session_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rhimport/session_store.go b/rhimport/session_store.go
index c26d943..d6dce9f 100644
--- a/rhimport/session_store.go
+++ b/rhimport/session_store.go
@@ -145,7 +145,7 @@ func generateSessionId() (string, error) {
if _, err := rand.Read(b[:]); err != nil {
return "", err
}
- return base64.RawStdEncoding.EncodeToString(b[:]), nil
+ return base64.RawURLEncoding.EncodeToString(b[:]), nil
}
func (store *SessionStore) new(ctx *Context, refId string) (resp newSessionResponse) {