8000 Headers change from original case to all lowercase during cy.request() · Issue #2879 · cypress-io/cypress · GitHub
[go: up one dir, main page]

Skip to content
Headers change from original case to all lowercase during cy.request() #2879
@Robpizza

Description

@Robpizza

Current behavior:

I use the "Authorization" header to authenticate a request but when I post a html form in cypress it changes all the HTTP headers to lowercase, so "Authorization" becomes "authorization" which is refused at backend.

so this is my browser
Image of browser
this is cypress
Image of cypress

Desired behavior:

I'd like the request headers to keep their capital letter because it causes issues😋

Steps to reproduce:

Make a small php file with a html form, and when submit print_r(getallheaders());

Versions

Cypress V3.1.2
NodeJS v8.11.4
Npm v6.4.1

I use Chrome v70.0.3538.110 on MacOS Mojave v10.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0