usebruno/bruno

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

Open

#2,012 创建于 2024年4月4日

在 GitHub 查看
 (12 评论) (4 反应) (0 负责人)JavaScript (43,787 star) (2,403 fork)batch import
documentationenhancementgood first issuemid-term-goalmodule-response

描述

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.

贡献者指南