usebruno/bruno

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

Open

#2012 opened on Apr 4, 2024

View on GitHub
 (12 comments) (4 reactions) (0 assignees)JavaScript (43,787 stars) (2,403 forks)batch import
documentationenhancementgood first issuemid-term-goalmodule-response

Description

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.

Contributor guide