Repository navigation
Commit ce68df1
learn: fix page views never being counted (#1178)
On Workers, Response.headers is a plain dict and the Content-Type key
is not stored as "Content-Type", so every page was treated as non-HTML
and skipped. Match the header name case-insensitively.
Co-authored-by: ao <ao@a.lan>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4072cd2 commit ce68df1
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6641 | 6641 | | |
6642 | 6642 | | |
6643 | 6643 | | |
6644 | | - | |
| 6644 | + | |
| 6645 | + | |
| 6646 | + | |
| 6647 | + | |
| 6648 | + | |
| 6649 | + | |
| 6650 | + | |
| 6651 | + | |
6645 | 6652 | | |
6646 | 6653 | | |
6647 | 6654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
0 commit comments