leoek / fetch-to-curl

Convert javascript fetch requests to curl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

application crashing due to undefined header values

saurabhsethi1102 opened this issue · comments

While calling the fetchToCurl method with url and options, if the options is having undefined value in json, then while converting it into the curl, it will break while using replace method and as the exception is not handled, it is not getting caught leading to crashing of the application

Hi @saurabhsethi1102 thanks for reporting the issue. With which version did you encounter the issue? From my understanding this was already fixed with the release 0.6.0.

I also tried to reproduce the issue, but was unable to do so:
Screenshot 2023-10-17 at 15 30 04

If you can still reproduce the issue with v0.6.0, can you please add some steps to reproduce?

Hi @leoek
Looks like I was using the older version only and now with new version it works, Will try to get into it and if I find any issue will report otherwise everything looks perfect now.