Commit f0fca86
committed
Fixed parse-cookies to cope with key-only cookies.
Previous parse-cookies would error out if cookie consisted only of a key; now the value for such a key will simply be nil.
Also: slight rewrite of parse-cookies & parse-headers to use (more idiomatic, IMHO) (into {}) form for map construction.1 parent b855c43 commit f0fca86
1 file changed
+5
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
85 | 80 | | |
86 | 81 | | |
87 | 82 | | |
| |||
0 commit comments