Commit 3d8a141
authored
Fix bug. Sometimes the content type isn't sent.
Fixes an regresive bug where Content-Type was not properly set when serving files, which specifically affected Firefox when using "view page source" functionality.
The issue primarily manifested in Firefox's view-source feature, but the fix ensures consistent behavior across all browsers and use cases.
Changes:
Fixed missing contentType headers
Optimized string handling by replacing PSTR() with static constant
- Optimized string handling by replacing snprintf_P with snprintf
- Changed from dynamic buffer formatting to direct header addition using static template
- Improved memory efficiency and code readability1 parent 35ee69e commit 3d8a141
3 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
| 737 | + | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
0 commit comments