Skip to content

Commit 85d0b94

Browse files
authored
fix: fix one more renamed header (#35)
Follow-up to #33
1 parent 9b9fdc6 commit 85d0b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/utils/getCacheAnalysis.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const getServedBySource = (
138138
}
139139

140140
/**
141-
* There is a bug where sometimes duplicate hosts are returned in the `X-BB-Host-Id` header. This is
141+
* There is a bug where sometimes duplicate hosts are returned in the `Debug-X-BB-Host-Id` header. This is
142142
* doubly confusing because there are legitimate cases where the same node could be involved more
143143
* than once in the handling of a given request, but we can't distinguish those from dupes. So just dedupe.
144144
*/
@@ -157,7 +157,7 @@ const getServedBy = (
157157
): ServedBy => {
158158
const source = getServedBySource(cacheHeaders, cacheStatus)
159159
const unfixedCdnNodes
160-
= cacheHeaders.get('X-BB-Host-Id') ?? 'unknown CDN node'
160+
= cacheHeaders.get('Debug-X-BB-Host-Id') ?? 'unknown CDN node'
161161
return {
162162
source,
163163
cdnNodes: fixDuplicatedCdnNodes(unfixedCdnNodes),

0 commit comments

Comments
 (0)