Skip to content

Capitalized api keys values convert to simple #21492

@myas5868

Description

@myas5868

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>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions