diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-23 16:32:09 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-23 16:32:09 (GMT) |
commit | a42abed52db0006ecd609300bbf064bcb49ea10d (patch) | |
tree | 766e390dd94fede09a36be006e49864697bbed8e | |
parent | 39fd1c441cb18b1430ad954eb4431a2a8bff81c2 (diff) |
use URL compativle Base64 encoding for session ids
-rw-r--r-- | rhimport/session_store.go | 2 |
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) { |