Skip to content

Commit f6cdc40

Browse files
committed
Rename newSessionId -> newSessionID
1 parent 51dab6a commit f6cdc40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func getCookie(w http.ResponseWriter, r *http.Request) *http.Cookie {
280280
// still be used by Ajax requests.
281281
c = &http.Cookie{
282282
Name: sessionCookieName,
283-
Value: newSessionId(),
283+
Value: newSessionID(),
284284
MaxAge: 86400,
285285
HttpOnly: false,
286286
}
@@ -297,7 +297,7 @@ func getCookie(w http.ResponseWriter, r *http.Request) *http.Cookie {
297297
}
298298

299299
// newSessionId generates a new opaque session identifier for use in the cookie.
300-
func newSessionId() string {
300+
func newSessionID() string {
301301
const alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
302302

303303
// generate 64 character string

0 commit comments

Comments
 (0)