postmanlabs / postman-code-generators

Common repository for all code generators shipped with Postman
Apache License 2.0
981 stars 348 forks source link

Why using headers when it is not required in C-libcurl? #732

Open nikkivirtuoso opened 3 months ago

nikkivirtuoso commented 3 months ago

Describe the bug in code snippet generated for C-libcurl for simple get request it is using headers as NULL while we don't need it as we haven't created any custom headers

To Reproduce paste the API and produce the code-snippet for C-libcurl keep the method as get

Expected code snippet and corresponding request I don't think it is required it is unnecessarily bloating the code

Screenshots

Screenshot 2024-03-21 at 5 11 18 PM

Additional context I have experienced this on website of postman