Commit 50bc1ef7 authored by slene's avatar slene

rollback: set httponly default is false.

parent 7bacb257
......@@ -135,12 +135,12 @@ func (output *BeegoOutput) Cookie(name string, value string, others ...interface
}
}
// default true
httponly := true
// default false. for session cookie default true
httponly := false
if len(others) > 4 {
if v, ok := others[4].(bool); ok && !v || others[4] == nil {
// HttpOnly = false
httponly = false
if v, ok := others[4].(bool); ok && v {
// HttpOnly = true
httponly = true
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment