usebruno/bruno

Bruno is altering response headers to lowercase when they shouldn't be

Open

#2012 aperta il 4 apr 2024

Vedi su GitHub
 (12 commenti) (4 reazioni) (0 assegnatari)JavaScript (2403 fork)batch import
documentationenhancementgood first issuemid-term-goalmodule-response

Metriche repository

Star
 (43.787 star)
Metriche merge PR
 (Merge medio 6g 21h) (96 PR mergiate in 30 g)

Descrizione

Issue

It appears that Bruno lowercases header names, even if the server is not sending it back that way. This could potentially break tests that are relying on testing for a header by name where the case does not match.

Steps to reproduce issue

Attempt a curl to a server and look at the headers. In my case, I will be looking for the 'Server' header on crapi.apisec.ai.

image

Notice how "Server" starts with a capital S.

Now do the same request in Bruno.

image

Notice how everything is now lowercase.

Expected behavior

The case should be preserved so existing tests that are looking for the case can continue to pass.

Guida contributor