We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51dab6a commit f6cdc40Copy full SHA for f6cdc40
client.go
@@ -280,7 +280,7 @@ func getCookie(w http.ResponseWriter, r *http.Request) *http.Cookie {
280
// still be used by Ajax requests.
281
c = &http.Cookie{
282
Name: sessionCookieName,
283
- Value: newSessionId(),
+ Value: newSessionID(),
284
MaxAge: 86400,
285
HttpOnly: false,
286
}
@@ -297,7 +297,7 @@ func getCookie(w http.ResponseWriter, r *http.Request) *http.Cookie {
297
298
299
// newSessionId generates a new opaque session identifier for use in the cookie.
300
-func newSessionId() string {
+func newSessionID() string {
301
const alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
302
303
// generate 64 character string
0 commit comments