-
Notifications
You must be signed in to change notification settings - Fork 324
Commit e4c3b0f
author
authoredEgor Gorbunov
Do not lower header tokens in headerTokens() (#273)
HTTP header values, as opposed to header keys,
are case sensitive, but implementation of headerTokens()
before this patch would return lowered values always.
This old behavior could lead to chromium (v87) WebSocket
rejecting connnection because negotiated subprotocol,
returned in Sec-WebSocket-Protocol header (lowered
be headerToken() function) would not match one sent
by client, in case client specified value with capital
letters.1 parent c9f314a commit e4c3b0f
3 files changed
+12
-9
lines changedLines changed: 4 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 | - | ||
162 | + | ||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
168 | - | ||
168 | + | ||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
| |||
309 | 309 |
| |
310 | 310 |
| |
311 | 311 |
| |
312 | - | ||
313 | - | ||
314 | - | ||
312 | + | ||
315 | 313 |
| |
316 | - | ||
314 | + | ||
317 | 315 |
| |
318 | 316 |
| |
319 | 317 |
| |
| |||
354 | 352 |
| |
355 | 353 |
| |
356 | 354 |
| |
357 | - | ||
358 | 355 |
| |
359 | 356 |
| |
360 | 357 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
227 | + | ||
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | ||
227 | 233 |
| |
228 | 234 |
| |
229 | 235 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 | - | ||
197 | + | ||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 | - | ||
201 | + | ||
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
|
0 commit comments