Repository navigation
Commit d28d84a
fix(event_handler): add Vary: Accept-Encoding to responses of compressed routes (#8711)
* fix(event_handler): add Vary: Accept-Encoding to responses of compressed routes
* refactor(event_handler): reuse the Vary helper for CORS and cover list-valued Vary
CORS now goes through _add_vary too, which also stops it from emitting
'Origin, Origin' or '*, Origin' when the route already set Vary.
---------
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>1 parent 30ebaa4 commit d28d84a
2 files changed
Lines changed: 62 additions & 5 deletions
File tree
- aws_lambda_powertools/event_handler
- tests/functional/event_handler/required_dependencies
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
| 788 | + | |
793 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
794 | 805 | | |
795 | 806 | | |
796 | 807 | | |
| |||
857 | 868 | | |
858 | 869 | | |
859 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
860 | 875 | | |
861 | 876 | | |
862 | 877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
624 | 666 | | |
625 | 667 | | |
626 | 668 | | |
| |||
0 commit comments