bruno
bruno copied to clipboard
curl import incorrectly treats headers with empty values as "undefined" and adds extra colon to header names
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)
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: '
@stxpons Thanks for raising this issue. I was able to verify it, and we’ll look into it.
Closing this as it is already completed in: https://github.com/usebruno/bruno/pull/5897