Commit b877dc4
authored
Make Date header parsing locale-independent (#1663)
Parse RFC1123 Date headers with strptime_l 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>
Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>1 parent df55ff5 commit b877dc4
File tree
1 file changed
+33
-10
lines changed- olp-cpp-sdk-authentication/src
1 file changed
+33
-10
lines changedLines changed: 33 additions & 10 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 | | - | |
116 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
117 | 140 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 141 | + | |
| 142 | + | |
123 | 143 | | |
124 | 144 | | |
125 | 145 | | |
| |||
133 | 153 | | |
134 | 154 | | |
135 | 155 | | |
136 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
137 | 160 | | |
138 | 161 | | |
139 | 162 | | |
| |||
0 commit comments