Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
51c19c37
Commit
51c19c37
authored
Aug 06, 2017
by
astaxie
Committed by
GitHub
Aug 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2801 from nightlyone/patch-1
fix bad error code in seesion handling
parents
b23452dc
3f450299
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sess_utils.go
session/sess_utils.go
+1
-1
No files found.
session/sess_utils.go
View file @
51c19c37
...
...
@@ -149,7 +149,7 @@ func decodeCookie(block cipher.Block, hashKey, name, value string, gcmaxlifetime
// 2. Verify MAC. Value is "date|value|mac".
parts
:=
bytes
.
SplitN
(
b
,
[]
byte
(
"|"
),
3
)
if
len
(
parts
)
!=
3
{
return
nil
,
errors
.
New
(
"Decode: invalid value
%v
"
)
return
nil
,
errors
.
New
(
"Decode: invalid value
format
"
)
}
b
=
append
([]
byte
(
name
+
"|"
),
b
[
:
len
(
b
)
-
len
(
parts
[
2
])]
...
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment