Skip to content

Commit 828f33a

Browse files
NPA-4284: Add python script to translate request headers
1 parent 0cd2707 commit 828f33a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

proxies/live/apiproxy/resources/py/translate-request-headers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
request_headers = request.headers
33

44
# Map of lowercase header name to desired parcel case header name
5-
request_header_translation = {
6-
"x-request-id": "X-Request-ID",
7-
"x-correlation-id": "X-Correlation-ID"
8-
}
5+
request_header_translation = {"x-request-id": "X-Request-ID", "x-correlation-id": "X-Correlation-ID"}
96

107
# Loop through request headers
118
for key, value in request_headers.items():

0 commit comments

Comments
 (0)