[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Strip whitespace in cookie parsing tests.



commit b9ebfac6910d4464e11825b2d2439de9b23c0e43
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Fri Dec 28 06:10:05 2012 -0800

    Strip whitespace in cookie parsing tests.
---
 proxy/flashproxy-test.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/proxy/flashproxy-test.js b/proxy/flashproxy-test.js
index 19a830d..4c82376 100755
--- a/proxy/flashproxy-test.js
+++ b/proxy/flashproxy-test.js
@@ -124,10 +124,9 @@ function test_parse_cookie_string()
         { cs: "a=b; c=d",
           expected: { a: "b", c: "d" } },
         { cs: "a=b ; c=d",
-          expected: { a: "b ", c: "d" } },
+          expected: { a: "b", c: "d" } },
         { cs: "a= b",
-          expected: {a: " b" } },
-        /* The '=' character is always present. */
+          expected: {a: "b" } },
         { cs: "a=",
           expected: { a: "" } },
         { cs: "a=\"\"",



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits