bruno icon indicating copy to clipboard operation
bruno copied to clipboard

curl import incorrectly treats headers with empty values as "undefined" and adds extra colon to header names

Open stxpons opened this issue 2 months ago • 1 comments

I have checked the following:

  • [x] I have searched existing issues and found nothing related to my issue.

This bug is:

  • [ ] making Bruno unusable for me
  • [ ] slowing me down but I'm able to continue working
  • [x] annoying
  • [ ] this feature was working in a previous version but is broken in the current release.

Bruno version

2.13.2

Operating System

MacOS 15.6.1 (24G90)

Jira

Describe the bug

When importing curl commands, if a header has an empty value, it is mistakenly identified as "undefined." Additionally, the header name ends up with an extra colon appended.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

curl --request GET --url 'https://www.xx.com' -H 'Some-Empty-Header: '
Image Image

stxpons avatar Oct 21 '25 08:10 stxpons

@stxpons Thanks for raising this issue. I was able to verify it, and we’ll look into it.

Pragadesh44-Bruno avatar Oct 22 '25 09:10 Pragadesh44-Bruno

Closing this as it is already completed in: https://github.com/usebruno/bruno/pull/5897

Pragadesh44-Bruno avatar Nov 19 '25 05:11 Pragadesh44-Bruno