Commit 8018ea2
committed
Change cookie reading approach
Collecting all cookies in a jar, and when looking for a specific one
breaking out of the loop.
By this we're also sharing one variable less (`result`) for both the
write and read functionality, which will make it easier to modularize
the library in the future.1 parent 7f75645 commit 8018ea2
1 file changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 100 | + | |
105 | 101 | | |
106 | 102 | | |
107 | 103 | | |
| |||
129 | 125 | | |
130 | 126 | | |
131 | 127 | | |
| 128 | + | |
| 129 | + | |
132 | 130 | | |
133 | | - | |
134 | 131 | | |
135 | 132 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 133 | | |
141 | 134 | | |
142 | 135 | | |
143 | | - | |
| 136 | + | |
144 | 137 | | |
145 | 138 | | |
146 | 139 | | |
| |||
0 commit comments