Commit c522d03
committed
Make Date header parsing locale-independent
Parse RFC1123 Date headers with std::get_time using
the classic locale and a literal GMT token, and
trim header whitespace before parsing.
Treat invalid/partial parses as missing timestamps
and remove the extra GMT offset correction now that
UTC parsing is explicit.
Relates-To: HERESUP-57013
Signed-off-by: Mykhailo Diachenko <ext-mykhailo.z.diachenko@here.com>1 parent df55ff5 commit c522d03
File tree
1 file changed
+29
-9
lines changed- olp-cpp-sdk-authentication/src
1 file changed
+29
-9
lines changedLines changed: 29 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
111 | 121 | | |
112 | 122 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
116 | 132 | | |
| 133 | + | |
117 | 134 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
123 | 140 | | |
124 | 141 | | |
125 | 142 | | |
| |||
133 | 150 | | |
134 | 151 | | |
135 | 152 | | |
136 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
137 | 157 | | |
138 | 158 | | |
139 | 159 | | |
| |||
0 commit comments