Skip to content
Browse files

Merge branch 'develop'

  • Loading branch information...
2 parents 08beb4d + e3acd49 commit 2763a6955c8e38a89d0b532a10dd857115e854e9 @paulbellamy committed Jul 9, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 mango.go
  2. +1 −1 sessions.go
  3. +1 −1 sessions_test.go
View
2 mango.go
@@ -101,7 +101,7 @@ type Stack struct {
}
func Version() []int {
- return []int{0, 3, 5}
+ return []int{0, 3, 6}
}
func VersionString() string {
View
2 sessions.go
@@ -49,7 +49,7 @@ func decode64(value string) (result string) {
func decodeCookie(value, secret string) (cookie map[string]interface{}) {
cookie = make(map[string]interface{})
- split := strings.Split(string(value), "--", 2)
+ split := strings.Split(string(value), "--")
if len(split) < 2 {
return cookie
View
2 sessions_test.go
@@ -63,7 +63,7 @@ func TestSessions(t *testing.T) {
t.Error("Expected the Set-Cookie header to be set")
}
- unparsed := strings.Split(strings.Split(cookie, "=", 2)[1], ";", 2)[0]
+ unparsed := strings.Split(strings.Split(cookie, "=")[1], ";")[0]
value := decodeCookie(unparsed, "my_secret")
expected_value := map[string]interface{}{"counter": int(2)}
if len(value) != len(expected_value) {

0 comments on commit 2763a69

Please sign in to comment.
Something went wrong with that request. Please try again.