flutter_downloader
flutter_downloader copied to clipboard
Escape " character in headers
One of my headers has a value that contains quotation marks ("). In your java code this causes an error as strings are defined by the same characters. I solved this by escaping the character manually:
authHeader['Cookie'] = authHeader['Cookie'].replaceAll('"', '\\"');
I think in java you can also use the single quotation marks (') which should solve this problem. Thanks for the nice package!
Could you create a pull request for it? My time is quite tight now, I can't promise to support it soon.
I would like to work on this issue but I couldn't find any lead where I can start. How can I run/test flutter_downloader. Can you please give some direction to start.