Commit 5e4c2ff
committed
Pass CSRF token using Sec-WebSocket-Protocol header
The proposed change tries to respect other values in the
Sec-WebSocket-Protocol header, that the caller may have set in the
headers option when calling make-channel-socket-client!
Use the pre-ws-handshake option introduced in http-kit commit to Add
the Sec-WebSocket-Protocol response header in the websocket
upgrade. Some browsers (like Google Chrome and Google Chrome derived
ones) fail to complete the upgrade if the upgrade response doesn't
include the Sec-WebSocket-Protocol with one of the sub-protocols
proposed in the request.
[Re: 465]1 parent ae7a2e7 commit 5e4c2ff
2 files changed
+43
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
527 | 529 | | |
528 | 530 | | |
529 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
530 | 546 | | |
531 | 547 | | |
532 | 548 | | |
| |||
538 | 554 | | |
539 | 555 | | |
540 | 556 | | |
541 | | - | |
| 557 | + | |
| 558 | + | |
542 | 559 | | |
543 | 560 | | |
544 | 561 | | |
| |||
688 | 705 | | |
689 | 706 | | |
690 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
691 | 715 | | |
692 | 716 | | |
693 | 717 | | |
| |||
921 | 945 | | |
922 | 946 | | |
923 | 947 | | |
924 | | - | |
| 948 | + | |
| 949 | + | |
925 | 950 | | |
926 | 951 | | |
927 | 952 | | |
| |||
1203 | 1228 | | |
1204 | 1229 | | |
1205 | 1230 | | |
1206 | | - | |
| 1231 | + | |
| 1232 | + | |
1207 | 1233 | | |
1208 | 1234 | | |
1209 | 1235 | | |
| |||
1435 | 1461 | | |
1436 | 1462 | | |
1437 | 1463 | | |
1438 | | - | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1439 | 1472 | | |
1440 | 1473 | | |
1441 | 1474 | | |
1442 | | - | |
1443 | | - | |
1444 | | - | |
| 1475 | + | |
1445 | 1476 | | |
1446 | 1477 | | |
1447 | 1478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
0 commit comments