usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
26.88k stars 1.23k forks source link

[Bug] Missing headers from collection.bru file in "Generate code" function #943

Open giuseppemilicia opened 12 months ago

giuseppemilicia commented 12 months ago

I am experiencing a bug in the "Generate code" function. The generated code does not include the headers set at the collection level, as specified in the collection.bru file.

jcbeck37 commented 6 months ago

Just chiming in that this is an issue. For example, if you generate a curl request, the headers / authorization must be included. As it is, you cannot use that curl request that you've generated.

melnikaite commented 2 months ago

@Its-treason is it already released?

Its-treason commented 2 months ago

@Its-treason is it already released?

Hey @melnikaite, if you mean the commit, I referenced this issue: This will not be released to Bruno, it's only available to my Fork. I have rewriting how requests are executed, and this logic is used for generating code in my fork. But the Bruno maintainer is not really interested in my rewrite.