-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Capitalized api keys values convert to simple #21492
Copy link
Copy link
Closed
Labels
Description
Discussed in https://github.com/microsoft/playwright/discussions/21369
Originally posted by myas5868 March 3, 2023
I'm sending a post request
const response = await request.post(path,{
headers: {
'Accept': apiHeaders().ACCEPT,
'Content-Type': apiHeaders().CONTENT_TYPE,
'X-OO-SERVLET-TOKEN': apiHeaders().X_OO_SERVLET_TOKEN
},
data: JSON.stringify(orderData().TOMORROWDELIVERYDATE)
});
but X-OO-SERVLET-TOKEN is converted to simple case in header like below:
POST [https:/localhost/api/order]
accept: application/json
accept-encoding: gzip,deflate,br
content-type: application/json
x-oo-servlet-token: 680242a2a4d811a8a54eb6c6f33a
content-length: 444
expected header should be
POST [https:/localhost/api/order]
accept: application/json
accept-encoding: gzip,deflate,br
content-type: application/json
X-OO-SERVLET-TOKEN: 680242a2a4d811a8a54eb6c6f33a
content-length: 444</div>
Reactions are currently unavailable