Skip to content

Commit 57c6368

Browse files
committed
replace if-none-match
1 parent 9cc3129 commit 57c6368

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/event-proxy-server/src/event-proxy-server.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ function recursivelyReplaceData(obj: any, idCounter: number, idMap: Map<string,
5757
obj[key] = `[[timestamp]]`;
5858
} else if (typeof obj[key] === 'number' && obj[key] > 1000) {
5959
obj[key] = `[[highNumber]]`;
60+
} else if (key === 'if-none-match') {
61+
if (obj[key].startsWith('W/')) {
62+
obj[key] = `[[W/entityTagValue]]`;
63+
} else {
64+
obj[key] = `[[entityTagValue]]`;
65+
}
6066
} else if (key.includes('_id')) {
6167
if (idMap.has(obj[key])) {
6268
// give the same ID replacement to the same value

0 commit comments

Comments
 (0)